Skip to content

"__llvm_profile_write_file" method can only append data to profraw file? #136831

Open
@OuterCloud

Description

@OuterCloud

Can "__llvm_profile_write_file" merge the current profile data into profraw file without just appending the profile data to the file?
Appending will make the profraw file larger and larger while I call the "__llvm_profile_write_file" method.

Can "__llvm_profile_write_file" update the data of profraw file instead of appending data to the profraw file?

The profraw file will get larger and larger, but when I parse the profraw file into profdata file, the size is very small.

Hope "__llvm_profile_write_file" or some other methods can support "update mode" other than "append mode"

See "__llvm_profile_write_file" method here:

int __llvm_profile_write_file(void) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided Optimizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions