gct
gct

Reputation: 14583

Profiling shared library/plugins written in C++ for Python?

I've got a C++ library that lets me write plugins in C++ and then automatically exposes them to python. I'm working on some networking stuff in a plugin and I'd like to profile it with something like gprof, but simply compiling with -pg and running the plugin via python doesn't generated the necessary profiling data. Unfortunately the plugins are tightly coupled so it's not possible to run them as standalone programs. Does anyone know of ways to profile shared libraries and/or plugins independently of the program running them?

Upvotes: 0

Views: 1115

Answers (1)

msw
msw

Reputation: 43527

I've found valgrind's cachegrind with KCachegrind to be helpful in analysis of un-prepared (e.g. no gprof code embedded) binaries.

Upvotes: 1

Related Questions