Skip to content

Simplifies performance API#10327

Merged
rbuckton merged 2 commits into
masterfrom
simplePerformanceAPI
Aug 15, 2016
Merged

Simplifies performance API#10327
rbuckton merged 2 commits into
masterfrom
simplePerformanceAPI

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

This change streamlines the performance API and moves the various markers and measurements to Map over MapLike. As a result, some scenarios such as Angular are improved by another 3% (350ms). This change also improves integration with the ts-perf profiler, making it easier to analyze performance events.

Comment thread src/compiler/checker.ts Outdated
checkSourceFileWorker(node);

performance.measure("Check", start);
performance.mark("checkEnd");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: it seems you don't have to call mark here then as the function 'measure' will call timestamp() if you don't pass the end mark anyway?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I call mark to emit the performance event, that way I can query a cpuprofile for things like between(checkStart, checkEnd).

@yuit
Copy link
Copy Markdown
Contributor

yuit commented Aug 15, 2016

@rbuckton look good just wonder if you could send where is ts-perf profiler is, I can't find it 😅

@rbuckton rbuckton merged commit 75cb595 into master Aug 15, 2016
@rbuckton rbuckton deleted the simplePerformanceAPI branch August 15, 2016 23:42
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants