Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4907 posts 12264 karma points MVP 4x admin c-trib
    Oct 23, 2012 @ 16:33
    Jeroen Breuer
    0

    No macro information in MiniProfiler

    Hello,

    I've installed the packages and I'm trying to get more info about a macro which is very heavy (page takes a couple of seconds to load). The problem is that I don't see any info about the macro.

    I'm using Umbraco 4.9.0 and I installed the MiniProfiler_for_Umbraco_1.0.0.zip file.

    Here is my masterpage:

    <asp:content ContentPlaceHolderId="BottomContentPlaceholder" runat="server">
      <profiler:Macro Alias="MembersOverview" runat="server" />
      <profiler:Renderer runat="server" UseExistingjQuery="true" />
    </asp:content>

    The macro is a normal macro in the developers section.

    The page shows the profiler results, but the info doesn't display the macro info. The page takes a couple of seconds to load, but I don't see that anywhere either (probably because there is no macro info).

    Any idea what could be wrong?

    Jeroen

  • Jorge Lusar 150 posts 489 karma points
    Oct 23, 2012 @ 16:46
    Jorge Lusar
    0

    Hi Jeroen,

    I have not tested myself the Miniprofiler with Umbraco 4.9, but here are few things you can check:

    Is the EnableMiniProfiler set to true?

    Did you change the macro from <macro:Macro Alias="Navigation" runat="server" /> to <profiler:Macro Alias="Navigation" runat="server" />? Bare in mind that if the macro it's been loaded in less than 2ms, it will be hidden from the list. Click "show trivial" if you want to see the content anyway

    If you want to profile the sql as well, are you using MS SQL and and the EnableSqlMiniProfiler set to true?

    I noticed you added <profiler:Renderer runat="server" UseExistingjQuery="true" />. Is jquery set in the page before the control? (See this example)

    The MiniProfiler also relies on http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ so you must make sure jquery is there

    Hope this helps,

    J

  • Jeroen Breuer 4907 posts 12264 karma points MVP 4x admin c-trib
    Oct 23, 2012 @ 17:03
    Jeroen Breuer
    0

    Hi Jorge,

    I've set EnableMiniProfiler set to true and changed <umbraco:Macro to <profiler:Macro: 

    jQuery is also on the page because I can see profiler results.

    You say that if the macro is loaded under 2ms it won't be displayed. Is there also a max time? I've checked my macro loading time by adding ?umbDebugShowTrace=true to the querystring and it takes 55 (!) seconds to load the macro (I didn't write it :p). If I remove some code from the macro it loads a lot faster and it does display in the profiler. So it does work and I can see my macro now, but if the loading time it too long it won't be displayed.

    Jeroen

  • Jorge Lusar 150 posts 489 karma points
    Oct 23, 2012 @ 17:21
    Jorge Lusar
    0

    Hi Jeroen,

    If you want to change the min time you probably need to get the source code and change MiniProfilerPackage.cs and add

    MiniProfiler.Settings.TrivialDurationThresholdMilliseconds = 5;

     I'm not aware of a timeout setting for the miniprofiler.

    J

Please Sign in or register to post replies

Write your reply to:

Draft