aboutsummaryrefslogtreecommitdiff
path: root/src/process
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2012-04-26 12:25:00 -0400
committerArjan van de Ven <arjan@linux.intel.com>2012-04-26 12:25:00 -0400
commitd643a53a2a823a6430962f4799c0dce839bb9fba (patch)
tree45ff297729738c4674a0bd6e8234caef1791cdc4 /src/process
parenta705302cefbac29d1f934eb483596b963c2cbd66 (diff)
downloadpowertop-2.0-v2-d643a53a2a823a6430962f4799c0dce839bb9fba.tar.gz
Turn the HTML report into an easier to browse HTML "application"
Diffstat (limited to 'src/process')
-rw-r--r--src/process/do_process.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process/do_process.cpp b/src/process/do_process.cpp
index 8ac74c7..ecb742f 100644
--- a/src/process/do_process.cpp
+++ b/src/process/do_process.cpp
@@ -875,7 +875,7 @@ void report_process_update_display(void)
if (reporttype){
fprintf(reportout.http_report,
- "<h2>Overview of Software Power Consumers</h2>\n <table width=\"100%%\">\n");
+ "<div id=\"software\"><h2>Overview of Software Power Consumers</h2>\n <table width=\"100%%\">\n");
if (show_power)
fprintf(reportout.http_report,
"<tr><th width=\"10%%\">Power est.</th><th width=\"10%%\">Usage</th><th width=\"10%%\">Wakeups/s</th><th width=\"10%%\">GPU ops/s</th><th width=\"10%%\">Disk IO/s</th><th width=\"10%%\">GFX Wakeups/s</th><th width=\"10%%\" class=\"process\">Category</th><th class=\"process\">Description</th></tr>\n");
@@ -969,7 +969,7 @@ void report_process_update_display(void)
}
}
if (reporttype)
- fprintf(reportout.http_report,"</table>\n");
+ fprintf(reportout.http_report,"</table></div>\n");
else
fprintf(reportout.csv_report,"\n");
}
@@ -990,7 +990,7 @@ void report_summary(void)
if (reporttype) {
fprintf(reportout.http_report,
- "<h2>Power Consumption Summary</h2>\n");
+ "<div id=\"summary\"><h2>Power Consumption Summary</h2>\n");
fprintf(reportout.http_report,
"<p>%3.1f wakeups/second, %3.1f GPU ops/second, %3.1f VFS ops/sec, %3.1f GFX wakes/sec and %3.1f%% CPU use</p>\n <table width=\"100%%\">\n",
total_wakeups(), total_gpu_ops(), total_disk_hits(), total_xwakes(), total_cpu_time()*100);
@@ -1071,7 +1071,7 @@ void report_summary(void)
}
}
if (reporttype)
- fprintf(reportout.http_report,"</table>\n");
+ fprintf(reportout.http_report,"</table></div>\n");
else
fprintf(reportout.csv_report,"\n");
}