Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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" />
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?
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,
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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted