Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
/callgrind/tests/callgrind.out.*
/callgrind/tests/vgcore.*
/callgrind/tests/clreq
/callgrind/tests/register_desc
/callgrind/tests/register_desc_threads
/callgrind/tests/simwork
/callgrind/tests/threads
/callgrind/tests/inline-samefile
Expand Down
11 changes: 10 additions & 1 deletion callgrind/callgrind.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ typedef
VG_USERREQ__DUMP_STATS_AT,
VG_USERREQ__START_INSTRUMENTATION,
VG_USERREQ__STOP_INSTRUMENTATION,
VG_USERREQ__ADD_OBJ_SKIP
VG_USERREQ__ADD_OBJ_SKIP,
VG_USERREQ__ADD_DESC
} Vg_CallgrindClientRequest;

/* Dump current state of cost centers, and zero them afterwards */
Expand Down Expand Up @@ -133,4 +134,12 @@ typedef
VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__ADD_OBJ_SKIP, \
path, 0, 0, 0, 0)

/* Attach a "desc: <desc>" line to the header of the next dumped part, without
dumping. Use the "<key>: <value>" form other desc lines follow. Line breaks
in desc are written as spaces. Lines registered after the last dump are
dropped if the process exits or execs before dumping again. */
#define CALLGRIND_ADD_DESC(desc) \
VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__ADD_DESC, \
desc, 0, 0, 0, 0)

#endif /* __CALLGRIND_H */
Loading
Loading