var renderData = function() {
if (id == 0) {
- console.time("canvas rendering");
+ console.time("main canvas rendering");
var ctx = this.ctx;
ctx.save();
ctx.fillStyle = "rgb(255, 255, 255)";
ctx.restore();
}
renderProxyCanvas(canvasList[id], cmdQueue);
- if (id == 0) console.timeEnd("canvas rendering")
+ if (id == 0) {
+ console.timeEnd("main canvas rendering");
+ console.timeEnd(">>> total page display time:");
+ }
}.bind(this);
if (this.waitingForFonts) {
WorkerPDFDoc.prototype.showPage = function(numPage) {
this.numPage = parseInt(numPage);
+ console.log("=== start rendering page " + numPage + " ===");
+ console.time(">>> total page display time:");
this.worker.postMessage(numPage);
if (this.onChangePage) {
this.onChangePage(numPage);