Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf - show loader stats again #178391

Merged
merged 1 commit into from Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/vs/workbench/contrib/performance/browser/perfviewEditor.ts
Expand Up @@ -124,8 +124,8 @@ class PerfModelContentProvider implements ITextModelContentProvider {
md.blank();
this._addRawPerfMarks(md);
md.blank();
// this._addLoaderStats(md, stats);
// md.blank();
this._addLoaderStats(md, stats);
md.blank();
this._addCachedDataStats(md);

this._model.setValue(md.value);
Expand Down Expand Up @@ -234,20 +234,20 @@ class PerfModelContentProvider implements ITextModelContentProvider {
}
}

// private _addLoaderStats(md: MarkdownBuilder, stats: LoaderStats): void {
// md.heading(2, 'Loader Stats');
// md.heading(3, 'Load AMD-module');
// md.table(['Module', 'Duration'], stats.amdLoad);
// md.blank();
// md.heading(3, 'Load commonjs-module');
// md.table(['Module', 'Duration'], stats.nodeRequire);
// md.blank();
// md.heading(3, 'Invoke AMD-module factory');
// md.table(['Module', 'Duration'], stats.amdInvoke);
// md.blank();
// md.heading(3, 'Invoke commonjs-module');
// md.table(['Module', 'Duration'], stats.nodeEval);
// }
private _addLoaderStats(md: MarkdownBuilder, stats: LoaderStats): void {
md.heading(2, 'Loader Stats');
md.heading(3, 'Load AMD-module');
md.table(['Module', 'Duration'], stats.amdLoad);
md.blank();
md.heading(3, 'Load commonjs-module');
md.table(['Module', 'Duration'], stats.nodeRequire);
md.blank();
md.heading(3, 'Invoke AMD-module factory');
md.table(['Module', 'Duration'], stats.amdInvoke);
md.blank();
md.heading(3, 'Invoke commonjs-module');
md.table(['Module', 'Duration'], stats.nodeEval);
}

private _addCachedDataStats(md: MarkdownBuilder): void {

Expand Down