File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed
Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 22bin /
33build /
44build-debug /
5+ build-profiled /
56# Tests
67tests /__pycache__
78tests /backup
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ Tracking memory issues of Aspectator
4242
4343First of all you need to build a debug version of Aspectator.
4444
45- Then you need to run Aspectator under valgrind:
45+ Then you need to run Aspectator under valgrind (do not specify "--suppressions"
46+ if you do not have them):
4647-----------------------------------------
4748LDV_ASPECT_FILE=$PATH_TO_ASPECT_FILE \
4849LDV_STAGE=$STAGE \
4950LDV_OUT=$PATH_TO_OUT \
50- LDV_COMMON_MODEL=$PATH_TO_COMMON_MODEL \
5151valgrind \
5252--tool=memcheck \
5353--leak-check=yes \
@@ -65,3 +65,27 @@ After that you can either inspect output.xml manually or use valkyrie:
6565valkyrie -l output.xml
6666----------------------
6767
68+ Tracking CPU time issues of Aspectator
69+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70+
71+ First of all you need to build a debug version of Aspectator but use another
72+ directory "build-profiled" and another build command:
73+ ----------------------
74+ make profiledbootstrap
75+ ----------------------
76+
77+ Then you need to run Aspectator unber valgrind:
78+ -------------------------------------------
79+ LDV_ASPECT_FILE=$PATH_TO_ASPECT_FILE \
80+ LDV_STAGE=$STAGE \
81+ LDV_OUT=$PATH_TO_OUT \
82+ valgrind \
83+ --tool=callgrind \
84+ $PATH_TO_ASPECTATOR_PROFILED_DEBUG/gcc/cc1 \
85+ $PATH_TO_INPUT_FILE
86+ --------------------------------------------
87+
88+ After that you can either inspect callgrind.out.* manually or use kcachegrind:
89+ ------------------------------
90+ kcachegrind -l callgrind.out.*
91+ ------------------------------
You can’t perform that action at this time.
0 commit comments