4

I'd like to use line_profiler to profile a single large method line by line in my GoogleAppEngine application.

Unfortunately GAE doesn't seem to let you import .so libraries, even on a local dev server.

How could I go about achieving my goal? I'd be happy to use a python-only solution, if there's one out there, or take suggestions as to how to write my own.

bmurr
  • 121
  • 1
  • 8

1 Answers1

0

Use gae_mini_profiler.

It can either keep track of all function calls and their timings (instrumented) or can periodically examine the call stack to figure out in which functions time is being spent during a request (sampling). You can see an example of it in action here - http://mini-profiler.appspot.com/

Sean Lynch
  • 6,267
  • 2
  • 43
  • 45