/* Web Polygraph http://www.web-polygraph.org/ * (C) 2003-2006 The Measurement Factory * Licensed under the Apache License, Version 2.0 */ #include "base/polygraph.h" #include #include "xstd/gadgets.h" #include "loganalyzers/ReportTraceFigure.h" void ReportTraceFigure::setCtrlOptions() { theLabelX1 = "minutes"; ReportFigure::setCtrlOptions(); *theCtrlFile << "set size 1.0,0.5" << endl; } void ReportTraceFigure::globalStart(Time aStart) { theGlobalStart = aStart; } // use gnuplot date axis? void ReportTraceFigure::dumpTime(Time stamp) { static bool complained = false; complained = complained || !Should(theGlobalStart >= 0); *theCtrlFile << Max(0.0, (stamp - theGlobalStart).secd()/60); }