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

Add a totalLength getter to OperatorList, since the length is zero after flushing #6566

Merged
merged 1 commit into from
Oct 28, 2015
Merged

Add a totalLength getter to OperatorList, since the length is zero after flushing #6566

merged 1 commit into from
Oct 28, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

In the RenderPageRequest handler in worker.js, we attempt to print an info message containing the rendering time and the length of the operator list. The latter is currently broken (and has been for quite some time), since the length of an OperatorList is reset when flushing occurs.
This patch attempts to rectify this, by adding a getter which keeps track of the total length.

…ero after flushing

In the `RenderPageRequest` handler in `worker.js`, we attempt to print an `info` message containing the rendering time and the length of the operator list. The latter is currently broken (and has been for quite some time), since the `length` of an `OperatorList` is reset when flushing occurs.
This patch attempts to rectify this, by adding a getter which keeps track of the total length.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/51eaeec07ffd54e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/2b1d6758ea9ab10/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/51eaeec07ffd54e/output.txt

Total script time: 18.78 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/2b1d6758ea9ab10/output.txt

Total script time: 19.99 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij
Copy link
Contributor

Looks good to me, but it would be great if @yurydelendik or @brendandahl could check this too just to be sure.

yurydelendik added a commit that referenced this pull request Oct 28, 2015
Add a `totalLength` getter to `OperatorList`, since the `length` is zero after flushing
@yurydelendik yurydelendik merged commit 7a3963e into mozilla:master Oct 28, 2015
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the OperatorList_totalLength branch October 28, 2015 21:56
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.

4 participants