Skip to content

Instantly share code, notes, and snippets.

@alexshyba
Created August 9, 2013 22:18
Show Gist options
  • Save alexshyba/6197773 to your computer and use it in GitHub Desktop.
Save alexshyba/6197773 to your computer and use it in GitHub Desktop.
Playing with dotTrace SDK
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