Commit 1b1eda08 authored by Sami Kyostila's avatar Sami Kyostila Committed by Commit Bot

tracing: Update proto library build rule and roll Perfetto

This patch removes use of the deprecated sources_assignment_filter GN
feature from gni/proto_library.gni, since the extra descriptor files are
no longer being generated.

We also roll Perfetto to match the version used in Chrome and update
test expectations accordingly.

Bug: v8:10995
Change-Id: I65cb3b79feb6e5a7e5c8d99fdb8bf999a6048539
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2454079
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Auto-Submit: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70381}
parent f3c77929
...@@ -280,7 +280,7 @@ deps = { ...@@ -280,7 +280,7 @@ deps = {
'dep_type': 'cipd', 'dep_type': 'cipd',
}, },
'third_party/perfetto': 'third_party/perfetto':
Var('android_url') + '/platform/external/perfetto.git' + '@' + 'ff70e0d273ed10995866c803f23e11250eb3dc52', Var('android_url') + '/platform/external/perfetto.git' + '@' + '7cdc44f903d3bcfd1d0f67188bfa797a24756868',
'third_party/protobuf': 'third_party/protobuf':
Var('chromium_url') + '/external/github.com/google/protobuf'+ '@' + 'b68a347f56137b4b1a746e8c7438495a6ac1bd91', Var('chromium_url') + '/external/github.com/google/protobuf'+ '@' + 'b68a347f56137b4b1a746e8c7438495a6ac1bd91',
'third_party/zlib': 'third_party/zlib':
......
...@@ -11,8 +11,6 @@ template("proto_library") { ...@@ -11,8 +11,6 @@ template("proto_library") {
assert(defined(invoker.sources)) assert(defined(invoker.sources))
proto_sources = invoker.sources proto_sources = invoker.sources
set_sources_assignment_filter([])
if (host_os == "win") { if (host_os == "win") {
host_executable_suffix = ".exe" host_executable_suffix = ".exe"
} else { } else {
...@@ -141,6 +139,12 @@ template("proto_library") { ...@@ -141,6 +139,12 @@ template("proto_library") {
] ]
} }
if (defined(invoker.import_dirs)) {
foreach(path, invoker.import_dirs) {
args += [ "--import-dir=" + rebase_path(path, root_build_dir) ]
}
}
if (generate_with_plugin) { if (generate_with_plugin) {
plugin_path_rebased = rebase_path(plugin_path, root_build_dir) plugin_path_rebased = rebase_path(plugin_path, root_build_dir)
plugin_out_args = "" plugin_out_args = ""
...@@ -187,10 +191,7 @@ template("proto_library") { ...@@ -187,10 +191,7 @@ template("proto_library") {
"visibility", "visibility",
]) ])
# Exclude the config.descriptor file which is an output for some reason.
set_sources_assignment_filter([ "*.descriptor" ])
sources = get_target_outputs(":$action_name") sources = get_target_outputs(":$action_name")
set_sources_assignment_filter(sources_assignment_filter)
# configs -= [ "//gn/standalone:extra_warnings" ] # configs -= [ "//gn/standalone:extra_warnings" ]
if (defined(invoker.extra_configs)) { if (defined(invoker.extra_configs)) {
......
...@@ -856,10 +856,11 @@ TEST(JsonIntegrationTest) { ...@@ -856,10 +856,11 @@ TEST(JsonIntegrationTest) {
std::vector<std::string> all_args; std::vector<std::string> all_args;
GetJSONStrings(&all_args, json, "\"args\"", "{", "}"); GetJSONStrings(&all_args, json, "\"args\"", "{", "}");
CHECK_EQ("\"1\":1e+100", all_args[0]); // Ignore the first metadata event.
CHECK_EQ("\"2\":\"NaN\"", all_args[1]); CHECK_EQ("\"1\":1e+100", all_args[1]);
CHECK_EQ("\"3\":\"Infinity\"", all_args[2]); CHECK_EQ("\"2\":\"NaN\"", all_args[2]);
CHECK_EQ("\"4\":\"-Infinity\"", all_args[3]); CHECK_EQ("\"3\":\"Infinity\"", all_args[3]);
CHECK_EQ("\"4\":\"-Infinity\"", all_args[4]);
} }
#endif // V8_USE_PERFETTO #endif // V8_USE_PERFETTO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment