Copyright Accelerated Ideas 2007 Legacy Blog Posts | Blog Home | .NET Components

AICodePerformance – How to capture performance blocks


1/2/2007

Developers should use the block capture methods to collect performance data between code blocks:

Firstly, call the StartBlockCapture method:

public void StartBlockCapture(string customMessage, int GroupID)


The Start Block Capture method starts a timed block capture of performance data. This method is used in conjunction with End Block Capture to analyze the time span of specific code blocks.

Developers should also specify the Group ID for the block they want to start capture for (you can use up to 5 groups).

Secondly, the EndBlockCapture completes the block capture:

public void EndBlockCapture(string customMessage, int GroupID)


The End Block Capture method ends a timed block capture of performance data. This method is used in conjunction with Start Block Capture to analyze the time span of specific code blocks.

Developers should also specify the Group ID for the block they want to end capture for (you can use up to 5 groups).


< Blog Home