Exemplo n.º 1
0
 public void dbug_EndVisualInvalidateTrace()
 {
     if (dbugGraphicInvalidateTracer != null)
     {
         dbugGraphicInvalidateTracer.Stop();
         if (dbugInvalidateTracerStack.Count > 0)
         {
             dbugGraphicInvalidateTracer = dbugInvalidateTracerStack.Pop();
         }
         else
         {
             dbugGraphicInvalidateTracer = null;
         }
     }
 }
Exemplo n.º 2
0
 public void dbug_BeginVisualInvalidateTrace(string strmsg)
 {
     if (dbugEnableGraphicInvalidateTrace)
     {
         if (dbugGraphicInvalidateTracer != null)
         {
             dbugInvalidateTracerStack.Push(dbugGraphicInvalidateTracer);
             dbugGraphicInvalidateTracer.Start(invalidateTracerStreamWriter);
             dbugGraphicInvalidateTracer.WriteInfo(strmsg);
         }
         else
         {
             dbugGraphicInvalidateTracer = new dbugVisualInvalidationTracer(this);
             dbugGraphicInvalidateTracer.Start(invalidateTracerStreamWriter);
             dbugGraphicInvalidateTracer.WriteInfo(strmsg);
         }
     }
 }
Exemplo n.º 3
0
        public void dbug_Init()
        {
            dbugHitTracker          = new dbugHitTestTracker();
            dbugEvalScrollBarTracer = new dbugVisualEvalScrollBarTrace(this);

            if (dbugEnableLayoutProfiler)
            {
                string filename         = dbugCoreConst.dbugRootFolder + "\\layout_trace\\p_" + Guid.NewGuid().ToString() + ".txt";
                System.IO.FileStream fs = new System.IO.FileStream(filename, System.IO.FileMode.Create);

                dbugLayoutProfilerWriter           = new System.IO.StreamWriter(fs);
                dbugLayoutProfilerWriter.AutoFlush = true;
            }
            if (dbugEnableGraphicInvalidateTrace)
            {
                dbugGraphicInvalidateTracer = new dbugVisualInvalidationTracer(this);
                dbugGraphicInvalidateTracer.Start();
                dbugGraphicInvalidateTracer.WriteInfo("root_debug_init()");
            }
        }
 public void dbug_Init(System.IO.StreamWriter hitTestTrackerDebugStreamWriter,
     System.IO.Stream layoutTraceFileStream,
     System.IO.StreamWriter visualInvaldateStreamWriter
     )
 {
     dbugHitTracker = new dbugHitTestTracker(hitTestTrackerDebugStreamWriter);
     dbugEvalScrollBarTracer = new dbugVisualEvalScrollBarTrace(this);
     if (dbugEnableLayoutProfiler)
     {
         //string filename = dbugCoreConst.dbugRootFolder + "\\layout_trace\\p_" + Guid.NewGuid().ToString() + ".txt";
         //System.IO.FileStream fs = new System.IO.FileStream(filename, System.IO.FileMode.Create);
         dbugLayoutProfilerWriter = new System.IO.StreamWriter(layoutTraceFileStream);
         dbugLayoutProfilerWriter.AutoFlush = true;
     }
     if (dbugEnableGraphicInvalidateTrace)
     {
         dbugGraphicInvalidateTracer = new dbugVisualInvalidationTracer(this);
         dbugGraphicInvalidateTracer.Start(visualInvaldateStreamWriter);
         dbugGraphicInvalidateTracer.WriteInfo("root_debug_init()");
     }
 }
 public void dbug_EndVisualInvalidateTrace()
 {
     if (dbugGraphicInvalidateTracer != null)
     {
         dbugGraphicInvalidateTracer.Stop();
         if (dbugInvalidateTracerStack.Count > 0)
         {
             dbugGraphicInvalidateTracer = dbugInvalidateTracerStack.Pop();
         }
         else
         {
             dbugGraphicInvalidateTracer = null;
         }
     }
 }
 public void dbug_BeginVisualInvalidateTrace(string strmsg)
 {
     if (dbugEnableGraphicInvalidateTrace)
     {
         if (dbugGraphicInvalidateTracer != null)
         {
             dbugInvalidateTracerStack.Push(dbugGraphicInvalidateTracer);
             dbugGraphicInvalidateTracer.Start(invalidateTracerStreamWriter);
             dbugGraphicInvalidateTracer.WriteInfo(strmsg);
         }
         else
         {
             dbugGraphicInvalidateTracer = new dbugVisualInvalidationTracer(this);
             dbugGraphicInvalidateTracer.Start(invalidateTracerStreamWriter);
             dbugGraphicInvalidateTracer.WriteInfo(strmsg);
         }
     }
 }