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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl

Issue 2790973002: [instrumentation] Introduce JSON5 config files for probe generator. (Closed)
Patch Set: add missing config files Created 3 years, 8 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
OLDNEW
1 // This file is generated from {{input_file}} 1 // This file is generated from {{input_file}}
2 2
3 // Copyright 2017 The Chromium Authors. All rights reserved. 3 // Copyright 2017 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 6
7 7
8 {% set sink_class = (name | to_singular) + "Sink" %} 8 {% set sink_class = (name | to_singular) + "Sink" %}
9 {% for file in files %} 9 {% for file in files %}
10 #include "{{file.name}}Inl.h" 10 #include "{{file.name}}Inl.h"
11 {% endfor %} 11 {% endfor %}
12 #include "{{sink_class}}.h" 12 #include "{{sink_class}}.h"
13 {% for agent in agents %} 13 {% for agent in agents %}
14 {% set class_name = agent | agent_name_to_class %} 14 #include "{{agent | agent_name_to_include}}"
15 {% if class_name == "PerformanceMonitor" %}
16 #include "core/frame/PerformanceMonitor.h"
17 {% elif class_name.startswith("Platform") %}
18 #include "platform/probe/{{class_name}}.h"
19 {% else %}
20 #include "core/inspector/{{class_name}}.h"
21 {% endif %}
22 {% endfor %} 15 {% endfor %}
23 16
24 namespace blink { 17 namespace blink {
25 18
26 {{sink_class}}::{{sink_class}}() {} 19 {{sink_class}}::{{sink_class}}() {}
27 20
28 {% for agent in agents %} 21 {% for agent in agents %}
29 {% set class_name = agent | agent_name_to_class %} 22 {% set class_name = agent | agent_name_to_class %}
30 {% set getter_name = class_name | to_lower_case %} 23 {% set getter_name = class_name | to_lower_case %}
31 void {{sink_class}}::add{{class_name}}({{class_name}}* agent) { 24 void {{sink_class}}::add{{class_name}}({{class_name}}* agent) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 {%- endfor %} 100 {%- endfor %}
108 {%- endcall %} 101 {%- endcall %}
109 } 102 }
110 103
111 {% endif %} 104 {% endif %}
112 {% endfor %} 105 {% endfor %}
113 {% endfor %} 106 {% endfor %}
114 107
115 } // namespace probe 108 } // namespace probe
116 } // namespace blink 109 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698