के लिए प्रोफ़ाइल समय प्रदर्शित कर रहा प्रतीत होता है मैंने अभी एमवीसी-मिनी-प्रोफाइलर (http://code.google.com/p/mvc-mini-profiler/) का उपयोग करना शुरू कर दिया है और मुझे लगता है कि यह कमाल है। हालांकि, इसका उपयोग करते समय मुझे कुछ अजीब व्यवहार मिल रहा है।मिनी एमवीसी प्रोफाइलर: प्रत्येक स्थैतिक संसाधन
मुझे आईआईएस 7.5 पर चल रही एक एएसपी.NET वेबफॉर्म साइट मिली है और कुछ कारणों से जब मैं प्रोफाइलर सक्षम के साथ एक पृष्ठ लोड करता हूं, मुझे केवल एएसपीएक्स पेज के लिए समय माप नहीं मिलता है, लेकिन मुझे यह भी मिलता है पृष्ठ पर यादृच्छिक सीएसएस और जेएस संसाधनों के लिए।
एएसपीएक्स प्रोफाइल सही तरीके से काम करता है, एसक्यूएल क्वेरी को सही तरीके से प्रोफाइल किया जा रहा है। हालांकि, जैसा कि चित्र दिखाता है, मुझे अन्य परिणामों का एक गुच्छा भी मिलता है जो स्थिर सीएसएस और जेएस फाइलों के परिणाम होते हैं। जहां तक मैं कह सकता हूं, इन्हें आईआईएस द्वारा स्थिर रूप से पेश किया जा रहा है, इसलिए प्रोफाइलर कोड को इनके लिए भी नहीं बुलाया जाना चाहिए।
मेरी Global.asax के प्रासंगिक भागों हैं:
protected void Application_BeginRequest()
{
MiniProfiler profiler = null;
// might want to decide here (or maybe inside the action) whether you want
// to profile this request - for example, using an "IsSystemAdmin" flag against
// the user, or similar; this could also all be done in action filters, but this
// is simple and practical; just return null for most users. For our test, we'll
// profile only for local requests (seems reasonable)
profiler = MiniProfiler.Start();
using (profiler.Step("Application_BeginRequest"))
{
// you can start profiling your code immediately
}
}
protected void Application_EndRequest()
{
MvcMiniProfiler.MiniProfiler.Stop();
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
if (User == null || !User.Identity.IsAuthenticated)
{
MvcMiniProfiler.MiniProfiler.Stop(true);
}
}
इस व्यवहार की उम्मीद है?
मैं प्रोफाइलर की मेरी संस्करण को अद्यतन करने के लिए किया था, लेकिन यह काम किया है करने के लिए .... – growse
एक बात मैं नवीनतम कोड के साथ देखा है वहाँ कुछ डिबग कोड है कि में और छोड़ दिया गया है है प्रकट होता है आईई के साथ कुछ मुद्दों का कारण बनता है। मैंने जारीकर्ता ट्रैकर अंक 53 –
पर कोई समस्या लॉग कर दी है, मैं नजर रखूंगा - धन्यवाद। हमारे सभी देव क्रोम/एफएफ पर हैं, इसलिए मैं चिंतित नहीं हूं। – growse