| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 WebInspector.CountersGraph.call(this, delegate, model); | 40 WebInspector.CountersGraph.call(this, delegate, model); |
| 41 this._countersByName = {}; | 41 this._countersByName = {}; |
| 42 this._countersByName["documents"] = this.createCounter(WebInspector.UIString
("Documents"), WebInspector.UIString("Documents: %d"), "#d00"); | 42 this._countersByName["documents"] = this.createCounter(WebInspector.UIString
("Documents"), WebInspector.UIString("Documents: %d"), "#d00"); |
| 43 this._countersByName["nodes"] = this.createCounter(WebInspector.UIString("No
des"), WebInspector.UIString("Nodes: %d"), "#0a0"); | 43 this._countersByName["nodes"] = this.createCounter(WebInspector.UIString("No
des"), WebInspector.UIString("Nodes: %d"), "#0a0"); |
| 44 this._countersByName["jsEventListeners"] = this.createCounter(WebInspector.U
IString("Listeners"), WebInspector.UIString("Listeners: %d"), "#00d"); | 44 this._countersByName["jsEventListeners"] = this.createCounter(WebInspector.U
IString("Listeners"), WebInspector.UIString("Listeners: %d"), "#00d"); |
| 45 if (WebInspector.experimentsSettings.gpuTimeline.isEnabled()) | 45 if (WebInspector.experimentsSettings.gpuTimeline.isEnabled()) |
| 46 this._countersByName["gpuMemoryUsedKB"] = this.createCounter(WebInspecto
r.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %d"), "#c0c"); | 46 this._countersByName["gpuMemoryUsedKB"] = this.createCounter(WebInspecto
r.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %d"), "#c0c"); |
| 47 } | 47 } |
| 48 | 48 |
| 49 WebInspector.MemoryCountersGraph.prototype = { | 49 WebInspector.MemoryCountersGraph.prototype = { |
| 50 timelineStarted: function() |
| 51 { |
| 52 }, |
| 53 |
| 54 timelineStopped: function() |
| 55 { |
| 56 }, |
| 57 |
| 50 /** | 58 /** |
| 51 * @param {!WebInspector.TimelineModel.Record} record | 59 * @param {!WebInspector.TimelineModel.Record} record |
| 52 */ | 60 */ |
| 53 addRecord: function(record) | 61 addRecord: function(record) |
| 54 { | 62 { |
| 55 /** | 63 /** |
| 56 * @param {!WebInspector.TimelineModel.Record} record | 64 * @param {!WebInspector.TimelineModel.Record} record |
| 57 * @this {!WebInspector.MemoryCountersGraph} | 65 * @this {!WebInspector.MemoryCountersGraph} |
| 58 */ | 66 */ |
| 59 function addStatistics(record) | 67 function addStatistics(record) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 75 refreshRecords: function() | 83 refreshRecords: function() |
| 76 { | 84 { |
| 77 this.reset(); | 85 this.reset(); |
| 78 var records = this._model.records(); | 86 var records = this._model.records(); |
| 79 for (var i = 0; i < records.length; ++i) | 87 for (var i = 0; i < records.length; ++i) |
| 80 this.addRecord(records[i]); | 88 this.addRecord(records[i]); |
| 81 }, | 89 }, |
| 82 | 90 |
| 83 __proto__: WebInspector.CountersGraph.prototype | 91 __proto__: WebInspector.CountersGraph.prototype |
| 84 } | 92 } |
| OLD | NEW |