Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add logging that captures wall-clock time for queries, layer rendering and map rendering. #439

artemp opened this Issue Oct 11, 2011 · 2 comments


None yet
2 participants

artemp commented Oct 11, 2011

There is currently only one timer in mapnik, and it captures the time it takes to render the entire map in CPU time. Unfortunately that's not a very fair metric because things like database queries that block on the CPU aren't included and they are often the most expensive part of rendering. It would also be really nice to see an elapsed time for each layer's table query as well as for the layer as a whole.

I'm attaching a patch that supplies this functionality by adding two new classes (wall_clock_timer and wall_clock_progress_timer) which are like their boost counterparts but measure wall clock time instead of CPU time. I also applied the timer to get the measurements mentioned above.


artemp commented Oct 11, 2011

[artem] Excellent stuff, unfortunately this is not portable. TODO!!


artemp commented Oct 11, 2011

[springmeyer] I've commented (r1487) out the wall clock for the 0.7.0 release (alas!) and pushing this ticket to 0.8.0 to discuss ways to potentially make portable.

@springmeyer springmeyer closed this Sep 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment