Skip to content

Commit 0c9f898

Browse files
committed
WIP
1 parent 15c3fb0 commit 0c9f898

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/internal/client/dev/tracing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function log_expressions(expressions) {
2323
if (time) {
2424
// eslint-disable-next-line no-console
2525
console.groupCollapsed(
26-
`%c${label} %c${time.toFixed(2)}ms`,
26+
`%c${label} %c(${time.toFixed(2)}ms)`,
2727
changed ? 'color: CornflowerBlue; font-weight: bold' : 'color: grey; font-weight: bold',
2828
'color: grey',
2929
val && typeof val === 'object' && STATE_SYMBOL in val ? snapshot(val, true) : val
@@ -61,7 +61,7 @@ export function log_trace(fn, label) {
6161
var value = fn();
6262
var time = (performance.now() - start).toFixed(2);
6363
// eslint-disable-next-line no-console
64-
console.group(`${label} %c${time}ms`, 'color: grey');
64+
console.group(`${label} %c(${time}ms)`, 'color: grey');
6565
log_expressions(tracing_expressions);
6666
// eslint-disable-next-line no-console
6767
console.groupEnd();
@@ -124,7 +124,7 @@ export function trace(fn, label, computed) {
124124
previously_tracing_expressions.length !== 0
125125
) {
126126
previously_tracing_expressions.push({
127-
changed: tracing_expressions.some(e => e.changed),
127+
changed: tracing_expressions.some((e) => e.changed),
128128
label,
129129
value,
130130
time,

0 commit comments

Comments
 (0)