Recommendations for C Profilers? [closed]

Using gcc, I compile and link with -pg (as explained e.g. here), then continue by running the program (according to the principles also suggested at that URL) and using gprof. The tools will vary if you’re using different compilers &c, but the URL is still recommended, even then, for the parts that are about general … Read more

How can I profile a SQLAlchemy powered application?

Sometimes just plain SQL logging (enabled via python’s logging module or via the echo=True argument on create_engine()) can give you an idea how long things are taking. For example if you log something right after a SQL operation, you’d see something like this in your log: 17:37:48,325 INFO [sqlalchemy.engine.base.Engine.0x…048c] SELECT … 17:37:48,326 INFO [sqlalchemy.engine.base.Engine.0x…048c] {<params>} … Read more