DataCollection 클래스

DataCollection 클래스를 사용하면 .vsp 파일에서 프로파일링 도중 수집되는 데이터의 양을 프로그래밍 방식으로 제어할 수 있습니다.데이터 수집을 프로그래밍 방식으로 제어하려면 관리 코드에 DataCollection 클래스의 메서드와 속성을 사용하십시오.

상속 계층 구조

System.Object
  Microsoft.VisualStudio.Profiler.DataCollection

네임스페이스:  Microsoft.VisualStudio.Profiler
어셈블리:  Microsoft.VisualStudio.Profiler(Microsoft.VisualStudio.Profiler.dll)

구문

‘선언
<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

DataCollection 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성정적 멤버 CurrentId CurrentId 속성은 NameProfile, StartProfile, StopProfile, SuspendProfile 및 ResumeProfile에 대한 호출에서 스레드 ID 또는 프로세스 ID에 대해 의사(pseudo) 토큰을 반환합니다.이 속성을 사용하면 메서드는 구체적으로 지정된 스레드나 프로세스 대신 현재 스레드나 프로세스에 대해 작업합니다.

위쪽

메서드

  이름 설명
Public 메서드정적 멤버 CommentMarkAtProfile CommentMarkAtProfile 메서드는 .vsp 파일에 타임스탬프 값, 숫자 표시 및 주석 문자열을 삽입합니다.타임스탬프 값은 외부 이벤트의 동기화에 사용할 수 있습니다.표시와 주석을 삽입하려면 CommentMarkAtProfile 함수가 포함된 스레드의 프로파일링이 ON이어야 합니다.
Public 메서드정적 멤버 CommentMarkProfile CommentMarkProfile 메서드를 사용하면 .vsp 파일에 숫자 마커와 텍스트 문자열이 삽입됩니다.표시와 주석을 삽입하려면 CommentMarkProfile 함수가 포함된 스레드의 프로파일링이 ON이어야 합니다.
Public 메서드 Equals 지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (Object에서 상속됨)
Public 메서드 GetHashCode 특정 형식에 대한 해시 함수 역할을 합니다. (Object에서 상속됨)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드정적 멤버 MarkProfile MarkProfile 메서드를 사용하면 .vsp 파일에 프로필 표시가 삽입됩니다.표시를 삽입하려면 MarkProfile 함수가 포함된 스레드의 프로파일링이 ON이어야 합니다.
Public 메서드정적 멤버 NameProfile NameProfile 메서드는 지정된 프로세스나 스레드에 문자열을 할당합니다.
Public 메서드정적 멤버 ResumeProfile ResumeProfile 메서드를 사용하면 지정한 프로파일링 수준의 Suspend/Resume 카운터가 감소합니다.
Public 메서드정적 멤버 StartProfile StartProfile 메서드를 사용하면 지정한 프로파일링 수준의 카운터가 1(ON)로 설정됩니다.
Public 메서드정적 멤버 StopProfile StopProfile 메서드를 사용하면 지정한 프로파일링 수준의 카운터가 0(OFF)로 설정됩니다.
Public 메서드정적 멤버 SuspendProfile SuspendProfile 메서드를 사용하면 지정한 프로파일링 수준의 Suspend/Resume 카운터가 증가합니다.
Public 메서드 ToString 현재 개체를 나타내는 문자열을 반환합니다. (Object에서 상속됨)

위쪽

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualStudio.Profiler 네임스페이스