Red Gate forums :: View topic - Custom events
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 7
ANTS Performance Profiler 7 forum

Custom events

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
baruchl



Joined: 20 Nov 2005
Posts: 2

PostPosted: Fri Jul 27, 2012 12:34 am    Post subject: Custom events Reply with quote

Hello, I followed your directions to add custom events in my code, however, when profiling the code, only some of the indicators are presented.

what is the reason for that? is it because of sampling of the data?
is there anyway to cause the indicators to appear no matter what? (just like exceptions?)

thanks,
Busi
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 184

PostPosted: Fri Jul 27, 2012 10:53 pm    Post subject: Reply with quote

Hi Busi,

Thank you for your post! Can I ask--are you placing custom event markers within your events? If so, the custom events might happen so soon after the actual events that only the actual events' markers appear in the timeline (though both markers might still show for the first occurrence). The profiler removes events that are too close together in order to avoid ending up with huge results files.

Shorter methods like this might cause this:

private void button1_Click(object sender, EventArgs e)
{
button1.Text = "Clicked";
RedGate.Profiler.UserEvents.ProfilerEvent.SignalEvent("button");
}
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
baruchl



Joined: 20 Nov 2005
Posts: 2

PostPosted: Fri Jul 27, 2012 11:25 pm    Post subject: Reply with quote

Hi Jessica,
thanks for the fast reply.

I find this behavior very strange.
For me, a "custom event marker" doesn't really represent a real event, but just a marker I want to add to facilitate the profiling. For example before and after a function call.

This is very helpful when you try to define the interesting time range to profile. So, if I put an event marker before and after a method call, if the method duration may vary, sometimes I will see the marker and sometimes I will not. This is non-deterministic and may lead to frustration.

I love the way the exceptions are being logged and presented even if they are very close to each other (stack). I would love to see those custom event markers behaving just like the exceptions.

Thanks!
Busi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group