+
+
@@ -119,18 +128,21 @@ function viewDeferredTable(filename) {
This are functions used in timeouts and intervals and their accumulated execution times. Recorded in a time span of ${timeFormat(duration)}. Timeouts/intervals have run for ${timeFormat(sum)} (${(sum/duration*100).toFixed(2)}%). Percentages are calculated from summarized timeout/interval running time.
-
`;
domContent.innerHTML = htmlOverview;
domContent.querySelector("#back").addEventListener("click",event => {
show();
@@ -234,24 +246,46 @@ function viewDetailsTable(filename) {
Util.hideModal();
var htmlOverview = `
Detailed logging
-
- This is a trace log of all logged power entries, first column denotes the type. p for power, i for interval and t for timeout. Power is logged with old state, new state and calling app if available. Functions are logged with execution duraion and source if available.
-
-
- \n`;
+
+ This is a trace log of all logged entries. Power is logged with type, state transition (old → new) and calling app if available. Functions are logged with execution duraion and source if available.
+
+
+
+
+
+
+
Time
+
Type
+
Info
+
+
+ \n`;
let rows = data.trim().split("\n");
+ let firstTimestamp;
for (var row of rows) {
let cols = row.split(",");
- htmlOverview += `
-
${cols[0]}
-
${cols[1]}
-
${cols[2]}
-
${cols[3]}
-
${cols[4]}
-
`
+ let col = 0;
+ if (!firstTimestamp) firstTimestamp = cols[0];
+
+ if (cols[1] == "p"){
+ cols[1] = "Power";
+ htmlOverview += `