B2019-161 Document duration of various sections of code
B2019-161 Timing of refresh timer
This commit is contained in:
parent
2f06862a79
commit
b82f015286
@ -1227,6 +1227,9 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
tc.ShuttingDown = true; // This keeps PROMS from Hanging under certain circumstances
|
||||
// B2019-161 When shutting down output the timing information (to the error log)
|
||||
if (VolianTimer.TimingsOn)
|
||||
VolianTimer.ShowTimers();
|
||||
foreach (DisplayTabItem dti in tc.MyBar.Items)
|
||||
{
|
||||
if (dti.MyDSOTabPanel != null)
|
||||
@ -1332,7 +1335,8 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
private bool _RefreshTimerActive = false;
|
||||
|
||||
// B2019-161 When tracking timing time this action
|
||||
private static VolianTimer _TimeActivity = new VolianTimer("frmVEPROMS.cs _RefreshTimer_Tick", 1346);
|
||||
public bool RefreshTimerActive
|
||||
{
|
||||
get { return _RefreshTimerActive; }
|
||||
@ -1343,9 +1347,11 @@ namespace VEPROMS
|
||||
//_MyLog.DebugFormat("_RefreshTimer_Tick {0}", RefreshTimerActive);
|
||||
if (RefreshTimerActive)
|
||||
{
|
||||
_TimeActivity.Open();
|
||||
RefreshTimerActive = false;
|
||||
if (PauseRefresh) return;
|
||||
RefreshChanged(this);
|
||||
_TimeActivity.Close();
|
||||
}
|
||||
}
|
||||
|
||||
@ -2101,9 +2107,11 @@ namespace VEPROMS
|
||||
frm.ProgressBar = bottomProgBar;
|
||||
frm.ShowDialog(this);
|
||||
}
|
||||
private static VolianTimer _TimeActivity1 = new VolianTimer("frmVEPROMS.cs tmrCloseTabItems_Tick", 2108);
|
||||
|
||||
void tmrCloseTabItems_Tick(object sender, EventArgs e)
|
||||
{
|
||||
_TimeActivity1.Open();
|
||||
tmrCloseTabItems.Enabled = false;
|
||||
while (MyCloseTabList.CountDTI > 0)
|
||||
{
|
||||
@ -2117,6 +2125,7 @@ namespace VEPROMS
|
||||
tc.CloseTabItem(dti);
|
||||
}
|
||||
tmrCloseTabItems.Enabled = true;
|
||||
_TimeActivity1.Close();
|
||||
}
|
||||
|
||||
private void InitializeSecurity()
|
||||
@ -2683,6 +2692,7 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
private frmVEPROMS selectedChildWindow = null; // C2015-022 used for separate windows
|
||||
private static VolianTimer _TimeActivity2 = new VolianTimer("frmVEPROMS.cs tmrTreeView_Tick", 2697);
|
||||
/// <summary>
|
||||
/// This event is fired from the timer after the treeview click event completes
|
||||
/// </summary>
|
||||
@ -2690,17 +2700,24 @@ namespace VEPROMS
|
||||
/// <param name="e"></param>
|
||||
private void tmrTreeView_Tick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
_TimeActivity2.Open();
|
||||
bool giveTvFocus = true;
|
||||
tmrTreeView.Enabled = false; // Timer has now fired
|
||||
VETreeNode tn = tv.SelectedNode as VETreeNode;
|
||||
if (tn != null) giveTvFocus = !SetupNodes(tn);
|
||||
tv.Enabled = true;
|
||||
if (giveTvFocus) tv.Focus();
|
||||
_TimeActivity2.Close();
|
||||
}
|
||||
private static VolianTimer _TimeActivity3 = new VolianTimer("frmVEPROMS.cs tmrAutomatic_Tick", 2711);
|
||||
|
||||
private void tmrAutomatic_Tick(object sender, EventArgs e)
|
||||
{
|
||||
_TimeActivity3.Open();
|
||||
tmrAutomatic.Enabled = false; // Timer has now fired
|
||||
RunAutomatic();
|
||||
_TimeActivity3.Close();
|
||||
}
|
||||
private bool _ExpandingTree=false;
|
||||
private void tv_BeforeExpand(object sender, TreeViewCancelEventArgs e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user