Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataCollection 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 following tables list the members exposed by the DataCollection type.

  Name Description
Public property Static CurrentId 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
(see also Protected Methods )
  Name Description
Public method Static CommentMarkAtProfile 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.  
Public method Static CommentMarkProfile 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.  
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetHashCode  (Inherited from Object.)
Public method GetType  (Inherited from Object.)
Public method Static MarkProfile 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.  
Public method Static NameProfile The NameProfile method assigns a string to the specified process or thread.  
Public method Static ReferenceEquals  (Inherited from Object.)
Public method Static ResumeProfile The ResumeProfile method decrements the Suspend/Resume counter for the specified profiling level.  
Public method Static StartProfile The StartProfile method sets the counter to 1 (on) for the specified profiling level.  
Public method Static StopProfile The StopProfile method sets the counter to 0 (off) for the specified profiling level.  
Public method Static SuspendProfile The SuspendProfile method increments the Suspend/Resume counter for the specified profiling level.  
Public method ToString  (Inherited from Object.)
Top
  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.