mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Land Sysprof 2.x
This is a major redesign a modernization of Sysprof. The core data structures and design are largely the same, but it has been ported to Gtk3 and has lots of additions that should make your profiling experience smoother. Especially for those that are new to profiling. There are some very simple help docs added, but we really need the experts to come in and write some documentation here.
This commit is contained in:
147
Makefile.am
147
Makefile.am
@ -1,122 +1,37 @@
|
||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||
SUBDIRS = daemon data help lib po src tools tests
|
||||
|
||||
#SUBDIRS = $(MODULE_SUBDIR)
|
||||
#DIST_SUBDIRS = module
|
||||
EXTRA_DIST = AUTHORS
|
||||
|
||||
bin_PROGRAMS = sysprof-cli
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-systemdsystemunitdir='$(prefix)/etc/systemd/system'
|
||||
|
||||
if BUILD_GUI
|
||||
bin_PROGRAMS += sysprof
|
||||
endif
|
||||
AUTHORS:
|
||||
$(AM_V_GEN)if test -d "$(srcdir)/.git"; \
|
||||
then \
|
||||
echo Creating $@ && \
|
||||
( cd "$(top_srcdir)" && \
|
||||
echo '# Generated by Makefile. Do not edit.'; echo; \
|
||||
git log --no-merges --pretty=format:"%an" $(SUBDIRS) \
|
||||
| sort | uniq ) > $@.tmp \
|
||||
&& mv -f $@.tmp $@ \
|
||||
|| ( rm -f $@.tmp ; \
|
||||
echo Failed to generate $@ >&2 ); \
|
||||
else touch $@; fi
|
||||
|
||||
SYSPROF_CORE = \
|
||||
binfile.h \
|
||||
binfile.c \
|
||||
collector.c \
|
||||
collector.h \
|
||||
demangle.c \
|
||||
elfparser.c \
|
||||
elfparser.h \
|
||||
profile.h \
|
||||
profile.c \
|
||||
sfile.h \
|
||||
sfile.c \
|
||||
sformat.h \
|
||||
sformat.c \
|
||||
stackstash.h \
|
||||
stackstash.c \
|
||||
tracker.h \
|
||||
tracker.c \
|
||||
unwind.h \
|
||||
unwind.c \
|
||||
watch.h \
|
||||
watch.c \
|
||||
\
|
||||
util.h
|
||||
# Generate the ChangeLog.
|
||||
@GENERATE_CHANGELOG_RULES@
|
||||
dist-hook: dist-ChangeLog
|
||||
|
||||
# module/sysprof-module.h
|
||||
GITIGNOREFILES = \
|
||||
**/*.swp \
|
||||
*.o \
|
||||
aclocal.m4 \
|
||||
build-aux \
|
||||
ChangeLog \
|
||||
config \
|
||||
config.h.in \
|
||||
gtk-doc.m4 \
|
||||
gtk-doc.make \
|
||||
INSTALL \
|
||||
$(NULL)
|
||||
|
||||
#
|
||||
# GUI version
|
||||
#
|
||||
if BUILD_GUI
|
||||
|
||||
sysprof_SOURCES = \
|
||||
$(SYSPROF_CORE) \
|
||||
footreestore.c \
|
||||
footreestore.h \
|
||||
footreedatalist.h \
|
||||
footreedatalist.c \
|
||||
treeviewutils.h \
|
||||
treeviewutils.c \
|
||||
sysprof.c
|
||||
|
||||
sysprof_CPPFLAGS = \
|
||||
$(GUI_DEP_CFLAGS) \
|
||||
-DDATADIR=\"$(pkgdatadir)\" \
|
||||
-DPIXMAPDIR=\"$(pixmapsdir)\"
|
||||
|
||||
sysprof_LDADD = $(GUI_DEP_LIBS)
|
||||
|
||||
endif
|
||||
|
||||
udevdir = $(sysconfdir)/udev/rules.d
|
||||
dist_udev_DATA = 60-sysprof.rules
|
||||
|
||||
pixmapsdir = $(datadir)/pixmaps
|
||||
|
||||
dist_pkgdata_DATA = sysprof.glade
|
||||
dist_pixmaps_DATA = sysprof-icon-16.png sysprof-icon-24.png sysprof-icon-32.png sysprof-icon-48.png sysprof-icon-256.png
|
||||
|
||||
#
|
||||
# Command line version
|
||||
#
|
||||
|
||||
sysprof_cli_SOURCES = \
|
||||
$(SYSPROF_CORE) \
|
||||
signal-handler.h \
|
||||
signal-handler.c \
|
||||
sysprof-cli.c
|
||||
|
||||
sysprof_cli_CPPFLAGS = \
|
||||
$(CORE_DEP_CFLAGS)
|
||||
|
||||
sysprof_cli_LDADD = $(CORE_DEP_LIBS)
|
||||
|
||||
EXTRA_DIST = \
|
||||
sysprof-icon-source.svg
|
||||
|
||||
#
|
||||
# Test programs
|
||||
#
|
||||
noinst_PROGRAMS = testelf testunwind testdemangle
|
||||
|
||||
# testunwind
|
||||
testunwind_SOURCES = \
|
||||
testunwind.c \
|
||||
demangle.c \
|
||||
elfparser.c \
|
||||
elfparser.h \
|
||||
unwind.c \
|
||||
unwind.h
|
||||
testunwind_CPPFLAGS = $(CORE_DEP_CFLAGS)
|
||||
testunwind_LDADD = $(CORE_DEP_LIBS)
|
||||
|
||||
# testelf
|
||||
testelf_SOURCES = \
|
||||
testelf.c \
|
||||
demangle.c \
|
||||
elfparser.c \
|
||||
elfparser.h
|
||||
|
||||
testelf_CPPFLAGS = $(CORE_DEP_CFLAGS)
|
||||
testelf_LDADD = $(CORE_DEP_LIBS)
|
||||
|
||||
# testdemangle
|
||||
testdemangle_SOURCES = \
|
||||
testdemangle.c \
|
||||
elfparser.c \
|
||||
elfparser.h \
|
||||
demangle.c
|
||||
testdemangle_CPPFLAGS = $(CORE_DEP_CFLAGS)
|
||||
testdemangle_LDADD = $(CORE_DEP_LIBS)
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
||||
Reference in New Issue
Block a user