aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-09-02 14:13:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-09-02 14:13:09 +0000
commitc069e0130087606a5703005ca7a06e5b9c4bd4c4 (patch)
treec2e648dfe30ef43772df9e936f7de181a75a465b
parent7ec25ee794b44d179a4967a7ff7f463a7fb7fe54 (diff)
parent8499ba6f96ecbcfaff0ebbc18bfa79285e7c2574 (diff)
downloadperfetto-c069e0130087606a5703005ca7a06e5b9c4bd4c4.tar.gz
Merge "Add prebuilts to profiler_util"
-rw-r--r--src/trace_processor/importers/proto/profiler_util.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/trace_processor/importers/proto/profiler_util.cc b/src/trace_processor/importers/proto/profiler_util.cc
index c28f2fc03..277da0923 100644
--- a/src/trace_processor/importers/proto/profiler_util.cc
+++ b/src/trace_processor/importers/proto/profiler_util.cc
@@ -99,6 +99,16 @@ base::Optional<std::string> PackageFromLocation(TraceStorage* storage,
return "com.google.android.as";
}
+ if (location.find("DeviceIntelligenceNetworkPrebuilt") !=
+ base::StringView::npos) {
+ return "com.google.android.as.oss";
+ }
+
+ if (location.find("SettingsIntelligenceGooglePrebuilt") !=
+ base::StringView::npos) {
+ return "com.google.android.settings.intelligence";
+ }
+
base::StringView gm("/product/app/PrebuiltGmail/PrebuiltGmail.apk");
if (location.size() >= gm.size() && location.substr(0, gm.size()) == gm) {
return "com.google.android.gm";