Created
August 9, 2013 22:18
-
-
Save alexshyba/6197773 to your computer and use it in GitHub Desktop.
Playing with dotTrace SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = new JetBrains.dotTrace.Api.SaveSnapshotProfilingConfig(@"C:\perflog\publish_profiling\") | |
{ | |
ProfilingControlKind = JetBrains.dotTrace.Api.ProfilingControlKind.API, | |
TempPath = @"C:\perflog\publish_profiling\temp", | |
RedistPath = @"C:\perflog\Redist\JetBrains.dotTrace.ExternalLauncherProcess.exe", | |
SavePath = @"C:\perflog\publish_profiling\", | |
SnapshotFormat = JetBrains.dotTrace.Api.SnapshotFormat.Compressed, | |
CoreLogMask = 6, | |
}; | |
JetBrains.dotTrace.Api.SelfAttach.Attach(config); | |
// this is always false | |
if (JetBrains.dotTrace.Api.ProfilingControl.IsActive) | |
{ | |
JetBrains.dotTrace.Api.ProfilingControl.Start(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment