DataCollection Members
Include Protected Members
Include Inherited Members
The DataCollection class enables you to programmatically control the amount of data collected during profiling in the .vsp file. To programmatically control data collection, use methods and property of the DataCollection class in your managed code.
The DataCollection type exposes the following members.
Methods
Name
Description
The CommentMarkAtProfile method inserts a timestamp value, a numeric mark and a comment string in the .vsp file. The timestamp value can be used to synchronize external events. Profiling for the thread containing the CommentMarkAtProfile function must be ON for the mark and comment to be inserted.
The CommentMarkProfile method inserts a numeric marker and a text string in the .vsp file. Profiling for the thread containing the CommentMarkProfile function must be ON for the mark and comment to be inserted.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
Gets the type of the current instance. (Inherited from Object.)
The MarkProfile method inserts a profile mark in the .vsp file. Profiling for the thread containing the MarkProfile function must be ON for the mark to be inserted.
Creates a shallow copy of the current Object. (Inherited from Object.)
The NameProfile method assigns a string to the specified process or thread.
The ResumeProfile method decrements the Suspend/Resume counter for the specified profiling level.
The StartProfile method sets the counter to 1 (on) for the specified profiling level.
The StopProfile method sets the counter to 0 (off) for the specified profiling level.
The SuspendProfile method increments the Suspend/Resume counter for the specified profiling level.
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
The CurrentId property returns the pseudo-token for the thread id or process id, in a call to NameProfile, StartProfile, StopProfile, SuspendProfile, and ResumeProfile. Use this property to cause the method to operate on the current thread or process, rather than a specifically indicated one.
Top