Skip to content

Instantly share code, notes, and snippets.

@csiki
Last active June 19, 2018 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csiki/839b740c5ccc6740c9e9047ffc13b16d to your computer and use it in GitHub Desktop.
Save csiki/839b740c5ccc6740c9e9047ffc13b16d to your computer and use it in GitHub Desktop.
cdef extern from "gperftools/profiler.h":
int ProfilerStart(char* fname)
void ProfilerStop()
void ProfilerFlush()
def ProfStart(fname):
return ProfilerStart(fname)
def ProfStop():
ProfilerStop()
def ProfFlush():
ProfilerFlush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment