Mercurial > code > home > repos > light9
changeset 1537:b95b97177de6
console time logs
Ignore-this: 2017a9621712d22de1c367c5f1da71f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 11 May 2017 05:30:51 +0000 |
parents | 7a85229d07a0 |
children | 75c30e4e59d4 |
files | light9/web/graph.coffee light9/web/timeline/timeline.coffee |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/graph.coffee Thu May 11 05:20:15 2017 +0000 +++ b/light9/web/graph.coffee Thu May 11 05:30:51 2017 +0000 @@ -73,7 +73,9 @@ h = new Handler(func, label) @handlerStack[@handlerStack.length - 1].innerHandlers.push(h) + console.time("handler #{label}") @_rerunHandler(h, null) + console.timeEnd("handler #{label}") _rerunHandler: (handler, patch) -> handler.patterns = []
--- a/light9/web/timeline/timeline.coffee Thu May 11 05:20:15 2017 +0000 +++ b/light9/web/timeline/timeline.coffee Thu May 11 05:30:51 2017 +0000 @@ -346,6 +346,8 @@ onGraph: -> @graph.runHandler(@update.bind(@), "row notes #{@rowIndex}") update: (patch) -> + console.time('row update') + U = (x) -> @graph.Uri(x) notesForThisRow = [] @@ -364,6 +366,7 @@ child.song = @song # could change, but all the notes will be rebuilt child.zoomInX = @zoomInX # missing binding; see onZoom return child + console.timeEnd('row update') onZoom: -> for e in @children @@ -566,6 +569,7 @@ @graph.runHandler(@update.bind(@)) update: -> + console.time('attrs update') U = (x) -> @graph.Uri(x) @effect = @graph.uriValue(@uri, U(':effectClass')) @effectLabel = @effect.replace(/.*\//, '') @@ -582,6 +586,7 @@ if @existingColorScaleSetting == null @colorScaleFromGraph = '#ffffff' @colorScale = '#ffffff' + console.timeEnd('attrs update') onDel: ->