Ejemplo n.º 1
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()");
            }
        }
Ejemplo n.º 2
0
 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()");
     }
 }