Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Aug 22, 2014 @ 17:59
    Jeavon Leopold
    0

    Adding profiling to MiniProfiler with Umbraco v7.1

    Is it possible to add my own profiling into the mini profiler. In the announcement of the inclusion of MiniProfiler in Umbraco v6.1 there was this code sample:

    Umbraco.Core.Profiling.Profiler.Instance.Step("Hello World");
    

    But there is no Profiler on Umbraco.Core.Profiling....?

    Thanks,

    Jeavon

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 23, 2014 @ 15:29
    Sebastiaan Janssen
    100

    Absolutely, but the code was changed a bit before final release:

    using (DisposableTimer.DebugDuration<MyClass>("Measuring parsing algorithm"))
    { 
        //My code
    } 
    
  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Aug 23, 2014 @ 15:52
    Jeavon Leopold
    0

    Brilliant!

Please Sign in or register to post replies

Write your reply to:

Draft