aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-21 09:45:46 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-21 09:45:46 +0100
commit62a425a9b16a44ff627501cad0a49704729eed7f (patch)
treed415f459ad00f6a21cdca1e343d40948556be33d /CrowIDE/src
parent57010b29ccf36f59c9471f030f9d3572b264385e (diff)
DbgEvents baseMeasureWhenDiscarded
Diffstat (limited to 'CrowIDE/src')
-rw-r--r--CrowIDE/src/CrowIDE.cs4
-rw-r--r--CrowIDE/src/DesignInterface.cs23
-rw-r--r--CrowIDE/src/ProjectTree/ImlProjectItem.cs4
3 files changed, 22 insertions, 9 deletions
diff --git a/CrowIDE/src/CrowIDE.cs b/CrowIDE/src/CrowIDE.cs
index 0332592d..e371379b 100644
--- a/CrowIDE/src/CrowIDE.cs
+++ b/CrowIDE/src/CrowIDE.cs
@@ -42,7 +42,7 @@ namespace Crow.Coding
CMDUndo, CMDRedo, CMDCut, CMDCopy, CMDPaste, CMDHelp,
CMDAbout, CMDOptions,
CMDViewGTExp, CMDViewProps, CMDViewProj, CMDViewProjProps, CMDViewErrors, CMDViewSolution, CMDViewEditor, CMDViewProperties,
- CMDViewToolbox, CMDViewSchema, CMDViewStyling,CMDViewDesign,
+ CMDViewToolbox, CMDViewSchema, CMDViewStyling,CMDViewDesign,CMDViewDbgEvts,
CMDCompile;
void initCommands () {
@@ -78,6 +78,8 @@ namespace Crow.Coding
{ Caption = "IML Shematic View", CanExecute = true};
CMDViewStyling = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winStyleView.crow",this)))
{ Caption = "Styling Explorer", CanExecute = true};
+ CMDViewDbgEvts = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winDbgEvts.crow",this)))
+ { Caption = "Debug Events Explorer", CanExecute = true};
CMDViewGTExp = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winGTExplorer.crow")))
{ Caption = "Graphic Tree Explorer", CanExecute = false};
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs
index 9ac9e9a5..532d7f3d 100644
--- a/CrowIDE/src/DesignInterface.cs
+++ b/CrowIDE/src/DesignInterface.cs
@@ -158,13 +158,16 @@ namespace Crow.Coding
protected override void processLayouting ()
{
- #if DBG_EVENTS
- DbgStartSubEvt(DbgEvtType.IFaceLayouting);
- #endif
-
if (Monitor.TryEnter (LayoutMutex)) {
DiscardQueue = new Queue<LayoutingQueueItem> ();
LayoutingQueueItem lqi;
+ #if DBG_EVENTS
+ bool logLayouting = false;
+ if (LayoutingQueue.Count > 0){
+ DbgStartSubEvt(DbgEvtType.IFaceLayouting);
+ logLayouting = true;
+ }
+ #endif
while (LayoutingQueue.Count > 0) {
lqi = LayoutingQueue.Dequeue ();
#if DBG_EVENTS
@@ -175,14 +178,18 @@ namespace Crow.Coding
DbgEndSubEvt();
#endif
}
+ #if DBG_EVENTS
+ if (logLayouting)
+ DbgEndSubEvt();
+ #endif
LayoutingQueue = DiscardQueue;
Monitor.Exit (LayoutMutex);
DiscardQueue = null;
}
-
- #if DBG_EVENTS
- DbgEndSubEvt();
- #endif
+ }
+ public override string ToString ()
+ {
+ return string.Format ("DI");
}
}
}
diff --git a/CrowIDE/src/ProjectTree/ImlProjectItem.cs b/CrowIDE/src/ProjectTree/ImlProjectItem.cs
index 0575d177..c8d9aade 100644
--- a/CrowIDE/src/ProjectTree/ImlProjectItem.cs
+++ b/CrowIDE/src/ProjectTree/ImlProjectItem.cs
@@ -81,6 +81,10 @@ namespace Crow.Coding
get { return new List<GraphicObject> (new GraphicObject[] {instance}); }
}
+ public List<DebugEvent> DebugEvents {
+ get { return instance?.IFace.PerThreadCurDbgEvt.ToList(); }
+ }
+
void GTView_SelectedItemChanged (object sender, SelectionChangeEventArgs e){
SelectedItem = e.NewValue;
}