示例#1
0
 /// <summary>
 /// Must be called to initialize anti-managed profiler code. This method should only
 /// be called once per process. I.e., don't call it from every loaded .NET DLL.
 /// </summary>
 /// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
 public static bool Initialize()
 {
     profilerDetector = CreateProfilerDetector();
     return(profilerDetector.Initialize());
 }
示例#2
0
		/// <summary>
		/// Must be called to initialize anti-managed profiler code. This method should only
		/// be called once per process. I.e., don't call it from every loaded .NET DLL.
		/// </summary>
		/// <returns><c>true</c> if successful, <c>false</c> otherwise</returns>
		public static bool Initialize() {
			profilerDetector = CreateProfilerDetector();
			return profilerDetector.Initialize();
		}