Google Drive Integration
NOTE: Google Drive integration is currently only available for Googlers for an initial trial period before being opened to the public.
The Perfetto UI supports opening and sharing traces via Google Drive. Because files stay in Google Drive, you get fine-grained sharing controls — sharing with specific people, groups, or domains within your organization — and you can revoke access at any time.
Sharing a trace to Google Drive

With a trace open, click Share to GDrive in the Current Trace section of the sidebar:
- Upload the trace: Confirm the file name and destination folder (defaults to the trace name in My Drive — Drive will not overwrite existing files with the same name), then click Upload. You can close the dialog while uploading; progress continues on the sidebar badge.
- Manage access: By default, only you can access a newly uploaded trace. Click Manage access… to open Google Drive's sharing dialog and grant access to specific people, groups, or your organization.
- Copy the Perfetto link: Back in Perfetto's dialog, click Copy Perfetto link to copy a direct link that opens the trace in Perfetto (avoid Copy link inside Google Drive's sharing dialog, which copies a plain Drive URL instead).
NOTE: Only the trace file is uploaded — UI state (pinned tracks, notes, selections) is not yet shared.
Opening a Perfetto link

When someone sends you a Perfetto link copied from Share to GDrive, open it in your browser:
- Sign in to Google when prompted (the first time you use Drive in a session).
- The first time you open a particular file in Perfetto, click Authorize File Access and select the file in the Google Drive picker to load the trace.
If the file does not appear in the picker, see Link-only files and the Google Drive picker below.
Opening a trace directly from Google Drive
If a trace is already in Google Drive, you can open it in three ways:
From the sidebar
Click Open from GDrive in the sidebar:

- Browse Google Drive: Opens the Google Drive file picker so you can browse My Drive, Shared with me, or Shared Drives and select a trace.
- Paste a Google Drive link: Paste a plain Google Drive file URL (for
example,
https://drive.google.com/file/d/<FILE_ID>/view, including?resourcekey=links) or a Perfetto Drive link, then click Open.
From Google Drive's "Open with" menu
You can register Perfetto in Google Drive's Open with menu:
- Open the command palette in the Perfetto UI (
Ctrl+Shift+PorCmd+Shift+P). - Run Install Google Drive support and complete the Google authorization prompt.
- In Google Drive, right-click a trace file and choose Open with → Perfetto.
Traces uploaded through Perfetto are stored with a custom MIME type
(application/vnd.perfetto.trace), so Google Drive offers Open with →
Perfetto regardless of the file name or extension.
Troubleshooting & gotchas
Link-only files and the Google Drive picker
To protect your Drive data, Perfetto only requests the narrow drive.file scope
and uses the Google Drive file picker to authorize access to each shared file
the first time you open it.
Due to a limitation in Google's Drive file picker, files shared as link-only ("Must have link to access", i.e. not searchable) are hidden from the picker until the recipient has opened the file in Google Drive at least once. (Googlers can see b/589689655 for details.) Files shared directly with specific people or groups are not affected.
Workaround for trace recipients
If the picker opens with no files listed (either because the file is link-only, or because you do not yet have access):
- Close or cancel the empty picker.
- In the "Didn't see the file in the picker?" dialog, click opening this file in Google Drive to open the file once in a new tab (this registers it with your Google account, or lets you request access).
- Return to the Perfetto tab and click Try Again. The file will now appear in the picker — select it to open the trace.

Avoiding this as a trace sender
Automatic organization searchability: When you share a trace with your organization via Manage access… in Perfetto, Perfetto automatically makes it searchable within your organization so recipients see it in the picker right away. If you prefer link-only visibility, you can switch it back from the sharing dialog.
Fixing existing link-only organization shares: If a trace is already shared with your organization as link-only, Perfetto shows a warning with a one-click Make searchable button:

Sharing with specific people or groups: Adding recipients explicitly by email or Google Group always makes the file visible in their picker.
"Anyone with the link" shares: Perfetto never makes public ("Anyone on the internet") files searchable on the web. Recipients of public links may need to open the file in Google Drive once first.
Browser pop-up blockers
When opening a shared Perfetto link directly, browsers may block the automatic
Google sign-in pop-up on page load. If this happens, Perfetto shows a Connect
to Google Drive button you can click to proceed. Allowing pop-ups for
ui.perfetto.dev in your browser settings skips this prompt in future.
Hiding the authorization dialog
Checking "Don't show this again" on the Authorize access to file dialog skips straight to the Drive picker in future. To re-enable it, toggle Google Drive: Hide file authorization dialog in Perfetto's Settings page.
Privacy and permissions
Perfetto requests Google OAuth scopes one at a time, only when you trigger an action that requires them:
| Scope | What it allows | Used by |
|---|---|---|
drive.file |
Reading and uploading only the files you create or explicitly select with Perfetto. Grants no access to other files in your Drive. | Open from GDrive, Share to GDrive, and opening Drive deep links |
drive.install |
Adds Perfetto to Google Drive's Open with menu. Grants no access to any files. | Install Google Drive support command |
Access tokens are stored only in browser memory for the current session and are cleared when you reload or close the tab.