Removed all the internal performance monitoring in favor of an external tool.
This commit is contained in:
parent
5f364b4db7
commit
e3c70b0268
4 changed files with 34 additions and 64 deletions
|
|
@ -99,34 +99,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
}
|
||||
|
||||
PerformanceFeedbackWindow timingWindow = null;
|
||||
Stopwatch totalDrawTime = new Stopwatch();
|
||||
static NamedExecutionTimer partPreviewDraw = new NamedExecutionTimer("PartPreview Draw");
|
||||
public override void OnDraw(Graphics2D graphics2D)
|
||||
{
|
||||
ExecutionTimer.Instance.Reset();
|
||||
|
||||
totalDrawTime.Restart();
|
||||
partPreviewDraw.Start();
|
||||
base.OnDraw(graphics2D);
|
||||
partPreviewDraw.Stop();
|
||||
totalDrawTime.Stop();
|
||||
#if true //DEBUG
|
||||
#if false
|
||||
if (timingWindow == null)
|
||||
{
|
||||
string staticDataPath = ApplicationDataStorage.Instance.ApplicationStaticDataPath;
|
||||
string fontPath = Path.Combine(staticDataPath, "Fonts", "LiberationMono.svg");
|
||||
TypeFace boldTypeFace = TypeFace.LoadSVG(fontPath);
|
||||
timingWindow = new PerformanceFeedbackWindow(new StyledTypeFace(boldTypeFace, 12));
|
||||
//}
|
||||
//{
|
||||
timingWindow.ShowResults(totalDrawTime.Elapsed.TotalSeconds);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
event EventHandler unregisterEvents;
|
||||
private void AddHandlers()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -221,12 +221,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
}
|
||||
|
||||
static NamedExecutionTimer drawTimer = new NamedExecutionTimer("View3DTrans");
|
||||
public override void OnDraw(Graphics2D graphics2D)
|
||||
{
|
||||
drawTimer.Start();
|
||||
base.OnDraw(graphics2D);
|
||||
drawTimer.Stop();
|
||||
}
|
||||
|
||||
public override void OnMouseMove(MouseEventArgs mouseEvent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue