# HG changeset patch # User Drew Perttula # Date 2017-05-11 05:30:51 # Node ID b95b97177de68098dc3e803842c35fc820fbdfdc # Parent 7a85229d07a026868ddfc19dc8dc761bb00431f8 console time logs Ignore-this: 2017a9621712d22de1c367c5f1da71f diff --git a/light9/web/graph.coffee b/light9/web/graph.coffee --- a/light9/web/graph.coffee +++ b/light9/web/graph.coffee @@ -73,7 +73,9 @@ class AutoDependencies 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 = [] diff --git a/light9/web/timeline/timeline.coffee b/light9/web/timeline/timeline.coffee --- a/light9/web/timeline/timeline.coffee +++ b/light9/web/timeline/timeline.coffee @@ -346,6 +346,8 @@ Polymer onGraph: -> @graph.runHandler(@update.bind(@), "row notes #{@rowIndex}") update: (patch) -> + console.time('row update') + U = (x) -> @graph.Uri(x) notesForThisRow = [] @@ -364,6 +366,7 @@ Polymer 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 @@ Polymer @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 @@ Polymer if @existingColorScaleSetting == null @colorScaleFromGraph = '#ffffff' @colorScale = '#ffffff' + console.timeEnd('attrs update') onDel: ->