mscorlib(4.0.0.0) API with additions
ProfileOptimization.cs
2 using System.Security;
3 
4 namespace System.Runtime
5 {
8  public static class ProfileOptimization
9  {
10  [DllImport("QCall", CharSet = CharSet.Unicode)]
11  [SecurityCritical]
12  [SuppressUnmanagedCodeSecurity]
13  internal static extern void InternalSetProfileRoot(string directoryPath);
14 
15  [DllImport("QCall", CharSet = CharSet.Unicode)]
16  [SecurityCritical]
17  [SuppressUnmanagedCodeSecurity]
18  internal static extern void InternalStartProfile(string profile, IntPtr ptrNativeAssemblyLoadContext);
19 
22  [SecurityCritical]
23  public static void SetProfileRoot(string directoryPath)
24  {
25  InternalSetProfileRoot(directoryPath);
26  }
27 
30  [SecurityCritical]
31  public static void StartProfile(string profile)
32  {
33  InternalStartProfile(profile, IntPtr.Zero);
34  }
35  }
36 }
Improves the startup performance of application domains in applications that require the just-in-time...
Definition: __Canon.cs:3
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
CharSet
Dictates which character set marshaled strings should use.
Definition: CharSet.cs:7
static void SetProfileRoot(string directoryPath)
Enables optimization profiling for the current application domain, and sets the folder where the opti...
static readonly IntPtr Zero
A read-only field that represents a pointer or handle that has been initialized to zero.
Definition: IntPtr.cs:20
static void StartProfile(string profile)
Starts just-in-time (JIT) compilation of the methods that were previously recorded in the specified p...