Index: third_party/WebKit/Source/platform/BUILD.gn |
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn |
index 38f3273f97c00454a8009189c3f7aaf718641fc1..c8f252361bfb3e3a7cdab619827edca32f261532 100644 |
--- a/third_party/WebKit/Source/platform/BUILD.gn |
+++ b/third_party/WebKit/Source/platform/BUILD.gn |
@@ -132,6 +132,30 @@ action("character_data") { |
] |
} |
+action("instrumentation_probes") { |
+ script = "instrumentation/InstrumentingProbesCodeGenerator.py" |
+ |
+ input_file = "instrumentation/PlatformInstrumentation.idl" |
+ inputs = [ |
+ input_file, |
+ "instrumentation/InstrumentingProbesImpl_cpp.template", |
+ "instrumentation/InstrumentingProbesImpl_h.template", |
+ "instrumentation/InstrumentingAgents_h.template", |
+ ] |
+ |
+ outputs = [ |
+ "$blink_platform_output_dir/PlatformInstrumentationAgents.h", |
+ "$blink_platform_output_dir/PlatformInstrumentationInl.h", |
+ "$blink_platform_output_dir/PlatformInstrumentationImpl.cpp", |
+ ] |
+ |
+ args = [ |
+ rebase_path(inputs[0], root_build_dir), |
+ "--output_dir", |
+ rebase_path(blink_platform_output_dir, root_build_dir), |
+ ] |
+} |
+ |
executable("character_data_generator") { |
sources = [ |
"text/CharacterPropertyDataGenerator.cpp", |
@@ -157,6 +181,7 @@ group("make_platform_generated") { |
":color_data", |
":font_family_names", |
":http_names", |
+ ":instrumentation_probes", |
":runtime_enabled_features", |
] |
} |
@@ -263,8 +288,6 @@ component("platform") { |
"PartitionAllocMemoryDumpProvider.cpp", |
"PartitionAllocMemoryDumpProvider.h", |
"PasteMode.h", |
- "PlatformInstrumentation.cpp", |
- "PlatformInstrumentation.h", |
"PlatformResourceLoader.cpp", |
"PlatformResourceLoader.h", |
"PluginScriptForbiddenScope.cpp", |
@@ -1051,6 +1074,10 @@ component("platform") { |
"image-encoders/RGBAtoRGB.h", |
"image-encoders/WEBPImageEncoder.cpp", |
"image-encoders/WEBPImageEncoder.h", |
+ "instrumentation/PlatformInstrumentation.cpp", |
+ "instrumentation/PlatformInstrumentation.h", |
+ "instrumentation/PlatformTraceEventsAgent.cpp", |
+ "instrumentation/PlatformTraceEventsAgent.h", |
"instrumentation/tracing/MemoryCacheDumpProvider.cpp", |
"instrumentation/tracing/MemoryCacheDumpProvider.h", |
"instrumentation/tracing/TraceEvent.h", |
@@ -1384,6 +1411,7 @@ component("platform") { |
get_target_outputs(":color_data") + |
get_target_outputs(":font_family_names") + |
get_target_outputs(":http_names") + |
+ get_target_outputs(":instrumentation_probes") + |
get_target_outputs(":runtime_enabled_features") |
configs += [ |