From d991c5c9e3d95c3b8400d844f4e9f5f7c0a43757 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 20 Jan 2015 19:22:37 +0000 Subject: [PATCH] Added Profile debug for Debug Output (details printed at each paragraph) --- PROMS/Volian.Print.Library/vlnParagraph.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index b2dd509f..f4e49980 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -984,9 +984,12 @@ namespace Volian.Print.Library { get { - if (!Rtf2Pdf.PdfDebug) return "No Path"; - return string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}", + if (!Rtf2Pdf.PdfDebug) return "No Path"; + int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.DebugInfo"); + string retval = string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}", DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.ShortPath, Width, XOffset); + ProfileTimer.Pop(profileDepth); + return retval; } } private void ResetDocStyleAndValues(ref float yTopMargin, ref float yBottomMargin)