CSS Performance Profiler?

So, I finally got around to writing a JavaScript function that indexed all of my CSS classes on the page and then individually toggled them, while scrolling the page. This immediately pin-pointed the errant class, and from there, I was able to determine errant property. Turns out that border-radius on an element that contains many … 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

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 to efficiently use Rprof in R?

Alert readers of yesterdays breaking news (R 3.0.0 is finally out) may have noticed something interesting that is directly relevant to this question: Profiling via Rprof() now optionally records information at the statement level, not just the function level. And indeed, this new feature answers my question and I will show how. Let’s say, we … Read more