Daya Bay Reactor Neutrino Experiment
TWiki > SourceCode (18 vs. 19)
Daya Bay webs: Public | 中文 | Internal | Help   Log In or Register

Welcome | Register | Changes | Topics | Index | Search | Go
 <<O>>  Difference Topic SourceCode (19 - 2014-10-05 - TWikiContributor)
Line: 4 to 4
 
On this page:
Deleted:
<
<

Monitor

Monitoring package. Instrument the code like this:

use Monitor; Monitor::MARK("Description of event"); Monitor::MARK("Another event");

or, to monitor all the calls to a module

use Monitor; Monitor::MonitorMethod('TWiki::Users');

or a function

use Monitor; Monitor::MonitorMethod('TWiki::Users', 'getCanonicalUserID');

Then set the environment variable TWIKI_MONITOR to a perl true value, and run the script from the command line e.g: $ cd bin $ ./view -topic Myweb/MyTestTopic

The results will be printed to STDERR at the end of the run. Two times are shown, a time relative to the last MARK and a time relative to the first MARK (which is always set the first time this package is used). The final column is total memory.

NOTE: it uses /proc - so its linux specific...

This package doesn't smell

 

TWiki::AccessControlException

Exception used raise an access control violation. This exception has the


View | History: r19 < r18 < r17 < r16 | More

View | History: r19 < r18 < r17 < r16 | More
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.SourceCode.