mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Incrementally render by sending the operator list by chunks as they're ready.
This commit is contained in:
parent
f7d2a09bf8
commit
bf72bc94e2
11 changed files with 641 additions and 789 deletions
|
@ -903,14 +903,14 @@ var StatTimer = (function StatTimerClosure() {
|
|||
if (!this.enabled)
|
||||
return;
|
||||
if (name in this.started)
|
||||
throw 'Timer is already running for ' + name;
|
||||
warn('Timer is already running for ' + name);
|
||||
this.started[name] = Date.now();
|
||||
},
|
||||
timeEnd: function StatTimer_timeEnd(name) {
|
||||
if (!this.enabled)
|
||||
return;
|
||||
if (!(name in this.started))
|
||||
throw 'Timer has not been started for ' + name;
|
||||
warn('Timer has not been started for ' + name);
|
||||
this.times.push({
|
||||
'name': name,
|
||||
'start': this.started[name],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue