Skip to content

Instantly share code, notes, and snippets.

@UplinkCoder
Created September 10, 2021 13:56
Show Gist options
  • Select an option

  • Save UplinkCoder/633684b6a78f0cc7b5d7d52c9780a675 to your computer and use it in GitHub Desktop.

Select an option

Save UplinkCoder/633684b6a78f0cc7b5d7d52c9780a675 to your computer and use it in GitHub Desktop.
#include <valgrind/callgrind.h>
extern "C" void callgrind_start(void)
{
CALLGRIND_START_INSTRUMENTATION;
}
extern "C" void callgrind_stop(void)
{
CALLGRIND_STOP_INSTRUMENTATION;
}
extern "C" void callgrind_dumpstats(void)
{
CALLGRIND_DUMP_STATS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment