Skip to main content

Module export

Module export 

Source
Expand description

Exporting each instrumented object to lcov, several at a time, keeping only the workspace’s own source records.

Constants§

IGNORED_SOURCES 🔒
Sources llvm-cov need not even read: the registry, the toolchain’s own sources and the system. The workspace filter below stays authoritative.
WORKERS 🔒
Also the thread count of the profile merge: one bound for the whole phase.

Functions§

copy_workspace_records 🔒
Copies only the records of sources under root, with their paths made relative. The report ignores every absolute path anyway, and dropping the registry and toolchain records here keeps gigabytes of lcov off the disk. Returns how many records were kept.
export_object 🔒
Returns how many workspace source records were kept.
export_objects 🔒
partition 🔒
Deals the items out round-robin, each with its index in items.