Skip to content

Commit dee3b7e

Browse files
committed
Add support for tracy-import-chrome tool
1 parent 100cc38 commit dee3b7e

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ compile_commands.json
100100
# tracy binaries
101101
/tracy-capture
102102
/tracy-gui
103+
/tracy-import-chrome
103104

104105
# test output
105106
stellar-core-test-*

Makefile.am

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ tracy-csvexport: $(TRACY_CSVEXPORT_BUILD)/csvexport-release
6565
bin_PROGRAMS += tracy-csvexport
6666
endif # USE_TRACY_CSVEXPORT
6767

68+
if USE_TRACY_IMPORT_CHROME
69+
TRACY_IMPORT_CHROME_DIR=$(top_srcdir)/lib/tracy/import-chrome
70+
TRACY_IMPORT_CHROME_SOURCE=$(TRACY_IMPORT_CHROME_DIR)/src
71+
TRACY_IMPORT_CHROME_BUILD=$(TRACY_IMPORT_CHROME_DIR)/build/unix
72+
73+
$(TRACY_IMPORT_CHROME_BUILD)/import-chrome-release: $(wildcard $(TRACY_IMPORT_CHROME_SOURCE)/*.*)
74+
$(MAKE) -C $(TRACY_IMPORT_CHROME_BUILD) release CC="$(CC)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS) -DNO_PARALLEL_SORT=1" CFLAGS="$(CFLAGS)" TRACY_NO_ISA_EXTENSIONS=1 TRACY_NO_LTO=1 LEGACY=1
75+
76+
tracy-import-chrome: $(TRACY_IMPORT_CHROME_BUILD)/import-chrome-release
77+
cp -v $< $@
78+
79+
bin_PROGRAMS += tracy-import-chrome
80+
endif # USE_TRACY_IMPORT_CHROME
81+
82+
6883
EXTRA_DIST = stellar-core.supp test/testnet/multitail.conf \
6984
test/testnet/run-test.sh README.md make-mks
7085

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,11 @@ AC_ARG_ENABLE(tracy-csvexport,
571571
[Enable 'tracy' profiler/tracer csvexport program]))
572572
AM_CONDITIONAL(USE_TRACY_CSVEXPORT, [test x$enable_tracy_csvexport = xyes])
573573

574+
AC_ARG_ENABLE(tracy-import-chrome,
575+
AS_HELP_STRING([--enable-tracy-import-chrome],
576+
[Enable 'tracy' profiler/tracer chrome-trace-format importer]))
577+
AM_CONDITIONAL(USE_TRACY_IMPORT_CHROME, [test x$enable_tracy_import_chrome = xyes])
578+
574579
AC_ARG_ENABLE(spdlog,
575580
AS_HELP_STRING([--disable-spdlog],
576581
[Disable spdlog]))

0 commit comments

Comments
 (0)