Showing the changes to assets/javascripts/debug.js.coffee (1 of 2 files). Show all
Unified · Split
| @@ -35,15 +35,15 @@ app.Searcher = -> · 34 unmodified lines | ||
| 35 | 35 | _match = @match.bind(@) |
| 36 | 36 | @match = => |
| 37 | 37 | if @matcher |
| 38 | − console.timeEnd @matcher | |
| 39 | − if @matcher is 'exactMatch' | |
| 40 | − for entries, score in @scoreMap by -1 when entries | |
| 41 | − console.log '' + score + ': ' + entries.map((entry) -> entry.text).join("\n ") | |
| 38 | + console.timeEnd @matcher.name | |
| 39 | + if @matcher.name is 'exactMatch' | |
| 40 | + for entries, score in @scoreMap by -1 when entries | |
| 41 | + console.log '' + score + ': ' + entries.map((entry) -> entry.text).join("\n ") | |
| 42 | 42 | _match() |
| 43 | 43 | |
| 44 | 44 | _setupMatcher = @setupMatcher.bind(@) |
| 45 | 45 | @setupMatcher = -> |
| 46 | − console.time @matcher | |
| 46 | + console.time @matcher.name | |
| 47 | 47 | _setupMatcher() |
| 48 | 48 | |
| 49 | 49 | _end = @end.bind(@) |
| @@ -56,7 +56,7 @@ app.Searcher = -> · 6 unmodified lines | ||
| 56 | 56 | _kill = @kill.bind(@) |
| 57 | 57 | @kill = -> |
| 58 | 58 | if @timeout |
| 59 | − console.timeEnd @matcher if @matcher | |
| 59 | + console.timeEnd @matcher.name if @matcher | |
| 60 | 60 | console.groupEnd() |
| 61 | 61 | console.timeEnd 'Total' |
| 62 | 62 | console.warn 'Killed' |