Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed May 8, 2024
1 parent ef03287 commit d4ae5bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/browser_action/vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,12 @@
// Pull out the pieces of interest for console table
scriptData = sortedScripts.map((a) => (
{
'Script duration': Math.round(a.duration, 0),
'Script type': a.invokerType || null,
'Script invoker': a.invoker || null,
'Script function': a.sourceFunctionName || null,
'Script source': a.sourceURL || null,
'Script char position': a.sourceCharPosition || null
'Duration': Math.round(a.duration, 0),
'Type': a.invokerType || null,
'Invoker': a.invoker || null,
'Function': a.sourceFunctionName || null,
'Source (links below)': a.sourceURL || null,
'Char position': a.sourceCharPosition || null
}
));
console.log("Long Animation Frame scripts:");
Expand All @@ -365,7 +365,7 @@
}, {});

for (const [key, value] of Object.entries(scriptsBySource)) {
console.log(`Source: ${key} (Duration${value.length > 1 ? 's' : ''}: ${value})`);
console.log(`Script source link: ${key} (Duration${value.length > 1 ? 's' : ''}: ${value})`);
}

}
Expand Down

0 comments on commit d4ae5bf

Please sign in to comment.