Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Profiler.DataCollection
Namespace: Microsoft.VisualStudio.Profiler
Assembly: Microsoft.VisualStudio.Profiler (in Microsoft.VisualStudio.Profiler.dll)
Syntax
'Declaration
<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, UnmanagedCode := True)> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode := True)> _
Public NotInheritable Class DataCollection
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, UnmanagedCode = true)]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode = true)]
public sealed class DataCollection
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand, UnmanagedCode = true)]
[SecurityPermissionAttribute(SecurityAction::LinkDemand, UnmanagedCode = true)]
public ref class DataCollection sealed
[<Sealed>]
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, UnmanagedCode = true)>]
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, UnmanagedCode = true)>]
type DataCollection = class end
public final class DataCollection
The DataCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() ![]() |
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
Methods
Name | Description | |
---|---|---|
![]() ![]() |
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. |
![]() ![]() |
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. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() |
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. |
![]() ![]() |
NameProfile | The NameProfile method assigns a string to the specified process or thread. |
![]() ![]() |
ResumeProfile | The ResumeProfile method decrements the Suspend/Resume counter for the specified profiling level. |
![]() ![]() |
StartProfile | The StartProfile method sets the counter to 1 (on) for the specified profiling level. |
![]() ![]() |
StopProfile | The StopProfile method sets the counter to 0 (off) for the specified profiling level. |
![]() ![]() |
SuspendProfile | The SuspendProfile method increments the Suspend/Resume counter for the specified profiling level. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.