Activity overview
Latest activity by sebbie
The competetive method to ANTS profiler is lame one [image] :
1) Log current timestamp (DateTime.Now) to file (open file for appending, write, flush and close file)
2) Execute method I'm trying to profile
3) Log current timestamp (DateTime.Now) to file (open file for appending, write, flush and close file)
Method I'm trying to profile reads configuration data from XML file using XmlTextReader. With ANTS profiler attached method is executing in 12seconds and without it it's executing in ~0.2sec. Method looks like that:
While xmlTr.Read()
If xmlTr.NodeType = XmlNodeType.EndElement And xmlTr.Name = "xxx" ...
If myVar= True And xmlTr.NodeType = XmlNodeType.EndElement And xmlTr.Name = "yyy"
etc.
End While
So basically it's just reading and parsing XML document. Difference between 0.2 and 12sec is too big and I can't profile my application because of that.
Hope that's clearer [image] / comments
The competetive method to ANTS profiler is lame one :
1) Log current timestamp (DateTime.Now) to file (open file for appending, write, flush and close file)
2) Execute method I'm trying to profile...
Application slows down while profiling (+incorrect results)
I've downloaded demo version of ANTS Profiler. I'm trying to profile ASP.NET 2.0 application. I'm getting incorrect results. The slowest lines in my app are
- While xmlTr.Read() ' according to ANTS...