SamSaffron / MiniProfiler

A simple but effective mini-profiler for ASP.NET MVC, ASP.NET and Ruby.
http://miniprofiler.com
1.05k stars 221 forks source link

Step method to return the yield call returned data? #163

Open josselinauguste opened 11 years ago

josselinauguste commented 11 years ago

Would it be possible that the step method returns the data returned by the yield call? It would make the calling code cleaner when the block don't just modify objects, but also returns data.

It seems quite straightforward to fix in the codebase, but i'm not sure of the potential consequences of such a behavioral change.

dixon commented 11 years ago

I assume this is not for the .NET implementation?

josselinauguste commented 11 years ago

Indeed it applies to the ruby implementation