I've always wished I could do some profiling like you get in Wolfram Workbench, but directly from Mathematica, without using or having Workbench. If it is possible, how can I do it?
You can put your Mathematica session in debug mode by going to
Then, make some definitions and wrap the profiled code in
For example, in debug mode, run
and you get a nice
As @acl mentioned in the comments, clicking in the gray area in the output notebook's lines takes you to the related code