Changeset - b95b97177de6
[Not reviewed]
default
0 2 0
Drew Perttula - 8 years ago 2017-05-11 05:30:51
drewp@bigasterisk.com
console time logs
Ignore-this: 2017a9621712d22de1c367c5f1da71f
2 files changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/web/graph.coffee
Show inline comments
 
@@ -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 = []
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -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: ->
0 comments (0 inline, 0 general)