mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-25 19:51:39 +01:00
show start time in console logger
This commit is contained in:
parent
387bad73b0
commit
e0efbaeb4e
@ -45,7 +45,7 @@ function filterValues(values: LogItemValues): LogItemValues | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function printToConsole(item: LogItem): void {
|
function printToConsole(item: LogItem): void {
|
||||||
const label = `${itemCaption(item)} (${item.duration}ms)`;
|
const label = `${itemCaption(item)} (@${item.start}ms, duration: ${item.duration}ms)`;
|
||||||
const filteredValues = filterValues(item.values);
|
const filteredValues = filterValues(item.values);
|
||||||
const shouldGroup = item.children || filteredValues;
|
const shouldGroup = item.children || filteredValues;
|
||||||
if (shouldGroup) {
|
if (shouldGroup) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user