Skip to content

A script for converting uftrace data to perfetto trace format #2021

@namhyung

Description

@namhyung

I'm working on a new python script to generate perfetto data from uftrace. As it requires knowledge of the perfetto protobuf format, it'd be great if we do it using python rather than adding it to the builtin dump command. Currently only basic function tracing is supported.

The script is available at review/script-perfetto-v1 branch.

Here's a simple example.

$ uftrace record tests/t-abc

$ uftrace script -S scripts/perfetto.py
Trace written to uftrace.data.perfetto-trace
Open with https://ui.perfetto.dev.

And upload it to https://ui.perfetto.dev.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    reviewscriptrelated to script execution

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions