Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/resources/gpu_internals/tracing_controller_tests.js

Issue 7495036: about:gpu support for thread name metadata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 cr.define('gpu', function() { 4 cr.define('gpu', function() {
5 var dataSets = [ 5 var dataSets = [
6 { 6 {
7 name: "big_trace", 7 name: "big_trace",
8 events_url: "./tests/big_trace.json" 8 events_url: "./tests/big_trace.json"
9 }, 9 },
10 { 10 {
11 name: "trivial_trace",
12 events: [
13 {"name":"a","args":{},"pid":6052,"ts":3074899524,"cat":"foo","tid":6053, "ph":"B"},
14 {"name":"a","args":{},"pid":6052,"ts":3074899560,"cat":"foo","tid":6053, "ph":"E"},
15 {"name":"b","args":{},"pid":6052,"ts":3074899629,"cat":"foo","tid":6053, "ph":"B"},
16 {"name":"b","args":{},"pid":6052,"ts":3074899631,"cat":"foo","tid":6053, "ph":"E"},
17 ]
18 },
19 {
11 name: "simple_trace", 20 name: "simple_trace",
12 events: [ 21 events: [
13 {"cat":"PERF","pid":22630,"tid":22630,"ts":826,"ph":"B","name":"A","args ":{}}, 22 {"cat":"PERF","pid":22630,"tid":22630,"ts":826,"ph":"B","name":"A","args ":{}},
14 {"cat":"PERF","pid":22630,"tid":22630,"ts":827,"ph":"B","name":"Asub","a rgs":{}}, 23 {"cat":"PERF","pid":22630,"tid":22630,"ts":827,"ph":"B","name":"Asub","a rgs":{}},
15 {"cat":"PERF","pid":22630,"tid":22630,"ts":828,"ph":"E","name":"Asub","a rgs":{}}, 24 {"cat":"PERF","pid":22630,"tid":22630,"ts":828,"ph":"E","name":"Asub","a rgs":{}},
16 {"cat":"PERF","pid":22630,"tid":22630,"ts":829,"ph":"B","name":"Asub","a rgs":{}}, 25 {"cat":"PERF","pid":22630,"tid":22630,"ts":829,"ph":"B","name":"Asub","a rgs":{}},
17 {"cat":"PERF","pid":22630,"tid":22630,"ts":832,"ph":"E","name":"Asub","a rgs":{}}, 26 {"cat":"PERF","pid":22630,"tid":22630,"ts":832,"ph":"E","name":"Asub","a rgs":{}},
18 {"cat":"PERF","pid":22630,"tid":22630,"ts":833,"ph":"E","name":"","args" :{}}, 27 {"cat":"PERF","pid":22630,"tid":22630,"ts":833,"ph":"E","name":"","args" :{}},
19 28
20 {"cat":"PERF","pid":22630,"tid":22630,"ts":840,"ph":"B","name":"A","args ":{}}, 29 {"cat":"PERF","pid":22630,"tid":22630,"ts":840,"ph":"B","name":"A","args ":{}},
21 {"cat":"PERF","pid":22630,"tid":22630,"ts":848,"ph":"E","name":"A","args ":{}}, 30 {"cat":"PERF","pid":22630,"tid":22630,"ts":848,"ph":"E","name":"A","args ":{}},
22 31
23 {"cat":"PERF","pid":22630,"tid":22630,"ts":850,"ph":"B","name":"B","args ":{}}, 32 {"cat":"PERF","pid":22630,"tid":22630,"ts":850,"ph":"B","name":"B","args ":{}},
24 {"cat":"PERF","pid":22630,"tid":22630,"ts":854,"ph":"E","name":"B","args ":{}}, 33 {"cat":"PERF","pid":22630,"tid":22630,"ts":854,"ph":"E","name":"B","args ":{}},
25 34
26 {"cat":"PERF","pid":22630,"tid":22631,"ts":827,"ph":"B","name":"A","args ":{}}, 35 {"cat":"PERF","pid":22630,"tid":22631,"ts":827,"ph":"B","name":"A","args ":{}},
27 {"cat":"PERF","pid":22630,"tid":22631,"ts":854,"ph":"E","name":"A","args ":{}} 36 {"cat":"PERF","pid":22630,"tid":22631,"ts":854,"ph":"E","name":"A","args ":{}},
37
38 {"cat":"__metadata","pid":22630,"tid":22630,"ts":0,"ph":"M","name":"thre ad_name","args":{"name": "threadA"}},
39 {"cat":"__metadata","pid":22630,"tid":22631,"ts":0,"ph":"M","name":"thre ad_name","args":{"name": "threadB"}},
40 {"cat":"__metadata","pid":22630,"tid":22632,"ts":0,"ph":"M","name":"thre ad_name","args":{"name": "threadC"}},
28 ] 41 ]
29 }, 42 },
30 { 43 {
31 name: "nonnested_trace", 44 name: "nonnested_trace",
32 events: [ 45 events: [
33 {'cat':'PERF','pid':22630,'tid':22630,'ts':826,'ph':'B','name':'A','args ':{}}, 46 {'cat':'PERF','pid':22630,'tid':22630,'ts':826,'ph':'B','name':'A','args ':{}},
34 {'cat':'PERF','pid':22630,'tid':22630,'ts':827,'ph':'B','name':'Asub','a rgs':{}}, 47 {'cat':'PERF','pid':22630,'tid':22630,'ts':827,'ph':'B','name':'Asub','a rgs':{}},
35 {'cat':'PERF','pid':22630,'tid':22630,'ts':829,'ph':'B','name':'NonNest' ,'args':{'id':'1','ui-nest':'0'}}, 48 {'cat':'PERF','pid':22630,'tid':22630,'ts':829,'ph':'B','name':'NonNest' ,'args':{'id':'1','ui-nest':'0'}},
36 {'cat':'PERF','pid':22630,'tid':22630,'ts':830,'ph':'B','name':'NonNest' ,'args':{'id':'2','ui-nest':'0'}}, 49 {'cat':'PERF','pid':22630,'tid':22630,'ts':830,'ph':'B','name':'NonNest' ,'args':{'id':'2','ui-nest':'0'}},
37 {'cat':'PERF','pid':22630,'tid':22630,'ts':831,'ph':'E','name':'Asub','a rgs':{}}, 50 {'cat':'PERF','pid':22630,'tid':22630,'ts':831,'ph':'E','name':'Asub','a rgs':{}},
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 }; 178 };
166 req.send(null); 179 req.send(null);
167 } 180 }
168 }, 181 },
169 182
170 endTracing: function() { 183 endTracing: function() {
171 } 184 }
172 } 185 }
173 }; 186 };
174 }); 187 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698