| Index: tracing/tracing/extras/chrome/blame_context/blame_context.html
|
| diff --git a/tracing/tracing/extras/chrome/render_frame.html b/tracing/tracing/extras/chrome/blame_context/blame_context.html
|
| similarity index 64%
|
| rename from tracing/tracing/extras/chrome/render_frame.html
|
| rename to tracing/tracing/extras/chrome/blame_context/blame_context.html
|
| index 289477d18adf50c97f02dda62438efb67115df4d..acc00004c58474c2c2c525ca7fca10610130a44e 100644
|
| --- a/tracing/tracing/extras/chrome/render_frame.html
|
| +++ b/tracing/tracing/extras/chrome/blame_context/blame_context.html
|
| @@ -5,6 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
|
| found in the LICENSE file.
|
| -->
|
|
|
| +<link rel="import" href="/tracing/model/event_set.html">
|
| <link rel="import" href="/tracing/model/object_instance.html">
|
|
|
| <script>
|
| @@ -16,11 +17,12 @@ tr.exportTo('tr.e.chrome', function() {
|
| var ObjectSnapshot = tr.model.ObjectSnapshot;
|
| var ObjectInstance = tr.model.ObjectInstance;
|
|
|
| - function RenderFrameSnapshot() {
|
| + function BlameContextSnapshot() {
|
| ObjectSnapshot.apply(this, arguments);
|
| + this.eventSet = new tr.model.EventSet();
|
| }
|
|
|
| - RenderFrameSnapshot.prototype = {
|
| + BlameContextSnapshot.prototype = {
|
| __proto__: ObjectSnapshot.prototype,
|
|
|
| preInitialize: function() {
|
| @@ -30,29 +32,21 @@ tr.exportTo('tr.e.chrome', function() {
|
| },
|
|
|
| get userFriendlyName() {
|
| - return 'RenderFrame';
|
| + return 'BlameContext';
|
| }
|
| };
|
|
|
| - ObjectSnapshot.register(
|
| - RenderFrameSnapshot,
|
| - {typeName: 'RenderFrame'});
|
| -
|
| - function RenderFrameInstance() {
|
| + function BlameContextInstance() {
|
| ObjectInstance.apply(this, arguments);
|
| }
|
|
|
| - RenderFrameInstance.prototype = {
|
| + BlameContextInstance.prototype = {
|
| __proto__: ObjectInstance.prototype
|
| };
|
|
|
| - ObjectInstance.register(
|
| - RenderFrameInstance,
|
| - {typeName: 'RenderFrame'});
|
| -
|
| return {
|
| - RenderFrameSnapshot: RenderFrameSnapshot,
|
| - RenderFrameInstance: RenderFrameInstance
|
| + BlameContextSnapshot: BlameContextSnapshot,
|
| + BlameContextInstance: BlameContextInstance
|
| };
|
| });
|
| </script>
|
|
|