Unreviewed changes
18 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: ios/chrome/browser/webui/ui_bundled/tracing/tracing_ui.h
Insertions: 0, Deletions: 1.
@@ -32,7 +32,6 @@
void OnTracingStarted();
void OnTracingStopped();
- private:
std::unique_ptr<perfetto::TracingSession> tracing_session_;
base::WeakPtrFactory<TracingMessageHandler> weak_ptr_factory_{this};
};
```
```
The name of the file: ios/chrome/browser/webui/ui_bundled/tracing/tracing_ui.mm
Insertions: 1, Deletions: 1.
@@ -119,7 +119,7 @@
// Note: this should be triggered from the active view controller, but since
// we are in WebUI, we can find the key window's rootViewController.
NSURL* file_url =
- [NSURL fileURLWithPath:base::SysUTF8ToNSString(trace_file.value())];
+ [NSURL fileURLWithPath:base::apple::FilePathToNSString(trace_file)];
UIActivityViewController* activity_vc =
[[UIActivityViewController alloc] initWithActivityItems:@[ file_url ]
applicationActivities:nil];
```
```
The name of the file: ios/chrome/browser/webui/ui_bundled/BUILD.gn
Insertions: 0, Deletions: 1.
@@ -168,7 +168,6 @@
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
"//ios/chrome/browser/sync/model:sync_invalidations_service_factory",
- "//ios/chrome/browser/tracing",
"//ios/chrome/browser/webui/ui_bundled/connectors_internals",
"//ios/chrome/browser/webui/ui_bundled/data_sharing_internals",
"//ios/chrome/browser/webui/ui_bundled/gcm",
```
Change information
Commit message:
[iOS tracing] Add chrome://tracing WebUI to capture performance traces
Adds a developer-facing WebUI (chrome://tracing) that interfaces with
the Perfetto tracing controller. It provides a simple start/stop
interface for on-device trace recording and uses the native iOS share
sheet to export the trace file once recording is complete.
Bug: 495937056
Change-Id: I72ae795a2293834e3bdae151ddd3adfc19504731
Cr-Commit-Position: refs/heads/main@{#1619954}
Files:
- M ios/chrome/app/resources/ios_resources.grd
- M ios/chrome/browser/shared/model/url/chrome_url_constants.h
- M ios/chrome/browser/webui/ui_bundled/BUILD.gn
- M ios/chrome/browser/webui/ui_bundled/DEPS
- M ios/chrome/browser/webui/ui_bundled/chrome_web_ui_ios_controller_factory.mm
- A ios/chrome/browser/webui/ui_bundled/tracing/DEPS
- A ios/chrome/browser/webui/ui_bundled/tracing/resources/tracing.html
- A ios/chrome/browser/webui/ui_bundled/tracing/tracing_ui.h
- A ios/chrome/browser/webui/ui_bundled/tracing/tracing_ui.mm
- A ios/chrome/browser/webui/ui_bundled/tracing/tracing_ui_egtest.mm
Change size: L
Delta: 10 files changed, 388 insertions(+), 0 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Rohit Rao, +1 by Daniel White