@@ -262,13 +262,13 @@ class BarGaugePanel : public Panel
262
262
}
263
263
};
264
264
265
- class GraphPanel : public Panel
265
+ class TimeSeriesPanel : public Panel
266
266
{
267
267
std::string yAxisLabel;
268
268
bool stack;
269
- GraphPanel () = delete ;
269
+ TimeSeriesPanel () = delete ;
270
270
public:
271
- GraphPanel (int x_, int y_, int w_, int h_, const std::string & title_, const std::string & yAxisLabel_, bool stack_)
271
+ TimeSeriesPanel (int x_, int y_, int w_, int h_, const std::string & title_, const std::string & yAxisLabel_, bool stack_)
272
272
: Panel(x_, y_, w_, h_, title_)
273
273
, yAxisLabel(yAxisLabel_)
274
274
, stack(stack_)
@@ -306,7 +306,7 @@ class GraphPanel : public Panel
306
306
"dataLinks": []
307
307
},
308
308
"percentage": false,
309
- "pluginVersion": "6.7 .2",
309
+ "pluginVersion": "10.4 .2",
310
310
"pointradius": 2,
311
311
"points": false,
312
312
"renderer": "flot",
@@ -325,7 +325,7 @@ class GraphPanel : public Panel
325
325
"sort": 0,
326
326
"value_type": "individual"
327
327
},
328
- "type": "graph ",
328
+ "type": "timeseries ",
329
329
"xaxis": {
330
330
"buckets": null,
331
331
"mode": "time",
@@ -587,7 +587,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
587
587
return t;
588
588
};
589
589
{
590
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, " Memory Bandwidth" , " MByte/sec" , false );
590
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, " Memory Bandwidth" , " MByte/sec" , false );
591
591
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, " Memory Bandwidth (MByte/sec)" );
592
592
y += height;
593
593
auto genAll = [type](const std::string& special) -> std::string
@@ -622,7 +622,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
622
622
for (size_t s = 0 ; s < NumSockets; ++s)
623
623
{
624
624
const auto S = std::to_string (s);
625
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, std::string (" Socket" ) + S + " Memory Bandwidth" , " MByte/sec" , false );
625
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, std::string (" Socket" ) + S + " Memory Bandwidth" , " MByte/sec" , false );
626
626
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, std::string (" Current Socket" ) + S + " Memory Bandwidth (MByte/sec)" );
627
627
y += height;
628
628
for (auto & m : { " DRAM Reads" , " DRAM Writes" , " Persistent Memory Reads" , " Persistent Memory Writes" })
@@ -648,7 +648,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
648
648
dashboard.push (panel1);
649
649
}
650
650
651
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, " PMEM/DRAM Bandwidth Ratio" , " PMEM/DRAM" , false );
651
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, " PMEM/DRAM Bandwidth Ratio" , " PMEM/DRAM" , false );
652
652
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, " PMEM/DRAM Bandwidth Ratio" );
653
653
y += height;
654
654
for (size_t s = 0 ; s < NumSockets; ++s)
@@ -676,7 +676,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
676
676
for (size_t s = 0 ; s < NumSockets; ++s)
677
677
{
678
678
const auto S = std::to_string (s);
679
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, std::string (" Socket" ) + S + " " + pcm->xPI () + " " + m, utilization?" %" : " MByte/sec" , false );
679
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, std::string (" Socket" ) + S + " " + pcm->xPI () + " " + m, utilization?" %" : " MByte/sec" , false );
680
680
std::shared_ptr<Panel> panel1;
681
681
if (utilization)
682
682
panel1 = std::make_shared<GaugePanel>(width, y, max_width - width, height, std::string (" Current Socket" ) + S + " UPI " + m + " (%)" );
@@ -708,7 +708,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
708
708
auto cstate = [&] (const char * m, const char * tPrefix, const char * source)
709
709
{
710
710
auto my_height = 3 * height / 2 ;
711
- auto panel = std::make_shared<GraphPanel >(0 , y, width, my_height, std::string (m) + " C-state residency" , " stacked %" , true );
711
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, my_height, std::string (m) + " C-state residency" , " stacked %" , true );
712
712
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, my_height, std::string (" Current " ) + m + " C-state residency (%)" );
713
713
y += my_height;
714
714
auto prometheusCStateExpression = [](const std::string& source, const size_t c) -> std::string
@@ -748,7 +748,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
748
748
cstate (" Package" , " Uncore Aggregate_Uncore" , " uncore" );
749
749
auto derived = [&](const std::string & fullName, const std::string & shortName, const std::string & dividend, const std::string & divisor)
750
750
{
751
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, fullName, shortName, false );
751
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, fullName, shortName, false );
752
752
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, fullName);
753
753
y += height;
754
754
for (size_t s = 0 ; s < NumSockets; ++s)
@@ -775,7 +775,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
775
775
derived (" L2 Cache Misses Per Instruction" , " L2 MPI" , " L2 Cache Misses" , " Instructions Retired Any" );
776
776
for (auto & m : {" Instructions Retired Any" , " Clock Unhalted Thread" , " L2 Cache Hits" , " L2 Cache Misses" , " L3 Cache Hits" , " L3 Cache Misses" })
777
777
{
778
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, std::string (m), " Million" , false );
778
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, std::string (m), " Million" , false );
779
779
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, std::string (m) + " (Million)" );
780
780
y += height;
781
781
for (size_t s = 0 ; s < NumSockets; ++s)
@@ -794,7 +794,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
794
794
if (pcm->getAccel () != ACCEL_NOCONFIG){
795
795
auto accelCounters = [&](const std::string & m)
796
796
{
797
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, accs->getAccelCounterName () + " " + m," Byte/sec" , false );
797
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, accs->getAccelCounterName () + " " + m," Byte/sec" , false );
798
798
std::shared_ptr<Panel> panel1;
799
799
panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, std::string (" Current " ) +accs->getAccelCounterName () + " (Byte/sec)" );
800
800
y += height;
@@ -820,7 +820,7 @@ std::string getPCMDashboardJSON(const PCMDashboardType type, int ns, int nu, int
820
820
for (size_t s = 0 ; s < NumSockets; ++s)
821
821
{
822
822
const auto S = std::to_string (s);
823
- auto panel = std::make_shared<GraphPanel >(0 , y, width, height, std::string (" Socket" ) + S + " Energy Consumption" , " Watt" , false );
823
+ auto panel = std::make_shared<TimeSeriesPanel >(0 , y, width, height, std::string (" Socket" ) + S + " Energy Consumption" , " Watt" , false );
824
824
auto panel1 = std::make_shared<BarGaugePanel>(width, y, max_width - width, height, std::string (" Current Socket" ) + S + " Energy Consumption (Watt)" );
825
825
y += height;
826
826
for (auto &m : {" Package Joules Consumed" , " DRAM Joules Consumed" , " PP0 Joules Consumed" , " PP1 Joules Consumed" })
0 commit comments