Event Profiler Patch

Steven D. Morrey smorrey at ldschurch.org
Tue Jun 9 01:02:31 CEST 2009


Hello Folks,

Here is a version with the event profiler as a config file option.
To turn it on or off, just set event_profiling_enabled=1 or 0 respectively.
You still need to compile with -DEVENT_PROFILER for it to work, but at least this way you can start and stop the profiler at will.

Sincerely,
Steve

________________________________________
From: Andreas Ericsson [ae at op5.se]
Sent: Monday, June 08, 2009 9:30 AM
To: Nagios Developers List
Subject: Re: [Nagios-devel] Event Profiler Patch

Steven D. Morrey wrote:
> I made it a compile time option in my patch for ease of insertion in
> the existing code base. It would be trivial to convert it to a config
> file option. Just add a new option and track it with a global
> variable, then search and replace all of the #ifdef EVENT_PROFILE
> tags with a simple if(gEvent_Profile_Enabled) After that it's just a
> matter of tracking down the unmatched #endif's and that should be it.
>  If there is interest in it, I can update the code to do this and
> submit a new patch.
>

That would be preferrable, but please stick to the current style of
naming variables. "event_profiling_enabled" would be an acceptable
variable name.

--
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


 NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-3-event_profiler.patch
Type: text/x-patch
Size: 25425 bytes
Desc: nagios-3-event_profiler.patch
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090608/fb7bbd39/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list