X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdebugscript.cpp;h=d7ccad348afce6c1f93fa6330fc1f4327423bf23;hp=3d132453bfe922ac4e21e0d54af6b423c18c5fa4;hb=63e9d774c858dfe79264a24ae8daa3dde3c7bb6e;hpb=67539822c80c8057d850b542abc142c189bd3f05 diff --git a/src/debugscript.cpp b/src/debugscript.cpp index 3d13245..d7ccad3 100644 --- a/src/debugscript.cpp +++ b/src/debugscript.cpp @@ -238,13 +238,16 @@ void DebugScript::PrintPerformance(View * view, Screen * scr) now.clock = clock(); now.object_count = view->Doc().ObjectCount(); now.view_bounds = view->GetBounds(); - // object_count delta clock delta x deltax y deltay w deltaw h deltah - printf("%d\t%d\t%lu\t%lu\t%e\t%e\t%e\t%e\t%e\t%e\t%e\t%e\n", - now.object_count, now.object_count - m_perf_last.object_count, - (uint64_t)now.clock, (uint64_t)(now.clock - m_perf_last.clock), - Double(now.view_bounds.x), Double(now.view_bounds.x - m_perf_last.view_bounds.x), - Double(now.view_bounds.y), Double(now.view_bounds.y - m_perf_last.view_bounds.y), - Double(now.view_bounds.w), Double(now.view_bounds.w - m_perf_last.view_bounds.w), - Double(now.view_bounds.h), Double(now.view_bounds.h - m_perf_last.view_bounds.h)); + + // object_count clock delta_clock x Log10(x) y Log10(y) w Log10(w) Size(w) + #ifdef QUADTREE_DISABLED + printf("%d\t%llu\t%llu\t%s\t%f\t%s\t%f\t%s\t%f\t%u\n", + now.object_count, (long long unsigned)now.clock, + (long long unsigned)(now.clock - m_perf_last.clock), + Str(now.view_bounds.x).c_str(), Log10(Abs(now.view_bounds.x)), + Str(now.view_bounds.y).c_str(), Log10(Abs(now.view_bounds.y)), + Str(now.view_bounds.w).c_str(), Log10(now.view_bounds.w), + (unsigned)Size(now.view_bounds.w)); + #endif m_perf_last = now; }