Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
 ProfileLevel Enumeration
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ProfileLevel Enumeration

Updated: November 2007

ProfileLevel enum is used indicate one of the three levels to which performance data collection can be applied.

Namespace:  Microsoft.VisualStudio.Profiler
Assembly:  Microsoft.VisualStudio.Profiler (in Microsoft.VisualStudio.Profiler.dll)

Visual Basic (Declaration)
Public Enumeration ProfileLevel
Visual Basic (Usage)
Dim instance As ProfileLevel
C#
public enum ProfileLevel
Visual C++
public enum class ProfileLevel
JScript
public enum ProfileLevel
Member nameDescription
Thread Thread profiling Level setting affects the specified thread.
Process Process level setting affect all threads which are part of specified process.
Global Global level setting affects all processes and threads in the profiling run.

The following code illustrates the ProfileLevel enumeration. The example uses the ProfileLevel value of Global in a call to the DataCollection.StartProfile method.

        public void ExerciseStartProfile()
        {          
            // Declare enumeration to hold return value of 
            // the call to StartProfile.
            ProfileOperationResult profileResult;

            profileResult = DataCollection.StartProfile(
                ProfileLevel.Global,
                DataCollection.CurrentId);

            Console.WriteLine("StartProfile returned {0}", profileResult);
        }
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker