Skip to content

[DNM] macos: collect compiler traces - #24

Draft
LalitMaganti wants to merge 1 commit into
macos-record-5from
macos-endpoint-security
Draft

LalitMaganti wants to merge 1 commit into
macos-record-5from
macos-endpoint-security

Conversation

@LalitMaganti

@LalitMaganti LalitMaganti commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

Prototype for #2, step 6 of 6, on top of #31.

The wrappers that ask Clang, LLD and nightly Rust for their internal timing are not platform-specific: they set environment variables and read the profiles the compilers leave behind. Passing those variables to the build and importing each profile when its process exits is all macOS needed.

Earlier revisions of this branch recorded through Endpoint Security, which is 30x more CPU and leaves a backlog after the build, and through a native Endpoint Security client, which needs an entitlement cargo install and Homebrew formula builds can never have. Both are gone; the stack beneath this reads the kernel trace facility instead.

@LalitMaganti LalitMaganti changed the title [DNM] macos: prototype recording through Endpoint Security [DNM] macos: record builds with the kernel trace facility Sep 16, 2026
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch 4 times, most recently from e71fc2f to 392115d Compare September 16, 2026 12:43
@LalitMaganti LalitMaganti changed the title [DNM] macos: record builds with the kernel trace facility [DNM] macos: collect compiler traces Sep 16, 2026
@LalitMaganti
LalitMaganti changed the base branch from main to macos-record-5 September 16, 2026 12:44
@LalitMaganti
LalitMaganti added this pull request to stack #32 September 16, 2026 12:57
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from 392115d to 3916032 Compare September 16, 2026 13:04
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch 3 times, most recently from f76086e to b5d4bb2 Compare September 16, 2026 13:16
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from b5d4bb2 to 15dedf7 Compare September 16, 2026 13:17
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from 15dedf7 to 993c9c9 Compare September 16, 2026 13:20
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from 993c9c9 to cc8ebc6 Compare September 16, 2026 13:22
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from cc8ebc6 to 75da35d Compare September 16, 2026 13:25
The wrappers that ask Clang, LLD and nightly Rust for their internal
timing are not platform-specific: they set environment variables and read
the profiles the compilers leave behind. Passing those variables to the
build and importing each profile when its process exits is all macOS
needed.
@LalitMaganti
LalitMaganti force-pushed the macos-endpoint-security branch from 75da35d to 773ac5c Compare September 16, 2026 13:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant