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

Re-factor StatTimer usage, in src/display/api.js, and remove DummyStatTimer #11271

Merged
merged 4 commits into from
Oct 23, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

No description provided.

…` exists when trying to report statistics

Even though the currect situation only results in six unnecessary function calls per page, it nonetheless seems completely unnecessary to call dummy functions when `pdfBug` is *not* set (i.e. the default behaviour).
Since this isn't part of the API surface, removing it now that it's unused shouldn't cause any problems.
This argument is a left-over from older API code, where we unconditionally initialized `StatTimer` instances for every page. For quite some time that's only been done when `pdfBug` is set, hence it seems unnecessary to keep this functionality.
This uses template strings in a couple of spots, and a buffer in the `toString` method.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/87b474c015b75b0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/96cdb39066c6cdd/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/87b474c015b75b0/output.txt

Total script time: 2.66 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/96cdb39066c6cdd/output.txt

Total script time: 5.00 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/962be2d77945432/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/962be2d77945432/output.txt

Total script time: 1.66 mins

Published

@timvandermeij timvandermeij merged commit 9c7f691 into mozilla:master Oct 23, 2019
@timvandermeij
Copy link
Contributor

Good simplification!

@Snuffleupagus Snuffleupagus deleted the rm-DummyStatTimer branch October 24, 2019 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants