Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Aug 7, 2025

I've been using this for my #484 experiments.

Export NET_IMAP_PROFILE=1 before running tests or benchmarks. Profiling data will be written to ~/.cache/net-imap, or export NET_IMAP_PROFILE_OUTDIR=dirname to configure the output dir.

Some of the benchmarks have a second barrier to profiling: setting $allowed_to_profile = true. This way we don't accidentally profile older releases of the gem.

Export SIMPLECOV_DISABLE=1 to disable simplecov.

Export PROFILE_ALLOCATIONS=1 to print GC object allocation stats (tests only).

nevans added 3 commits July 23, 2025 11:50
Export `NET_IMAP_PROFILE=1` before running tests or benchmarks.
Profiling data will be written to `~/.cache/net-imap`, or export
`NET_IMAP_PROFILE_OUTDIR=dirname` to configure the output dir.

Some of the benchmarks have a second barrier to profiling: setting
`$allowed_to_profile = true`.  This way we don't accidentally profile
older releases of the gem.
@nevans
Copy link
Collaborator Author

nevans commented Aug 7, 2025

TODO: fix ruby 3.1 syntax compatibility

@nevans nevans force-pushed the add-vernier-profiler branch from 9157acc to d78c15e Compare August 7, 2025 22:40
@nevans nevans merged commit 23929a4 into master Aug 7, 2025
37 checks passed
@nevans nevans deleted the add-vernier-profiler branch August 7, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants