Using profiler tags
The profiler tag class (gw.api.profiler.ProfilerTag) hints to the Gosu
profiler what actions happen within a block of code. To create a new profiler tag, pass a
String value that defines the profiler tag name to the
ProfilerTag constructor:
new ProfilerTag("EventPayloadXML")
To use the profiler tag, pass it to a using clause, as shown in the
following code:
using ( new ProfilerTag("EventPayloadXML") ) {
// Do your main work here...
// Use ProfilerTag methods if needed
tag.setCounterValue( "test", 3 )
}
See also
