Skip to content

code coverage / pgo on android / ohos: Add manual profile write on "shutdown" #40942

@jschwe

Description

@jschwe

See https://developer.android.com/ndk/guides/pgo

I think for both code coverage and PGO we would need to manual ensure the profile is written, by callin __llvm_profile_set_filename() and __llvm_profile_write_file(). I'm not sure if its actually the same function for both pgo and code coverage, but the same principle applies.
Assuming we are using webdriver to drive the test / profiling, then our custom webdriver shutdown logic might offer a good hook opportunity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-androidAndroid devicesP-ohosAny version of OpenHarmony

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions