Skip to content

Support timeline conversion to iOS platform trace #40076

@yuanhuihui

Description

@yuanhuihui

As of now, timeline can be better converted to systrace of Android platform(see flutter/flutter#47771). This PR is in order to support the trace function converted to the instruments of iOS platform.

something needs to be explained:

I redefine the macro OS_LOG_CALL_WITH_FORMAT_NAME to remove the constraint that the name must be argument must be a string constant in OS_LOG_STRING, otherwise it will run out of error as below:

error: static_assert failed due to requirement '__builtin_constant_p(str1)' "format/label/description argument must be a string constant"

run application with --systrace, we can see that the timeline events are all converted to the instruments IDE:

789a5d9f-8e2d-4696-8f75-c97416933e47

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions