topolarity / Tracy.jl

A convenient interface for using Tracy from within Julia code
MIT License
29 stars 3 forks source link

Add Preferences.jl support #27

Open topolarity opened 1 year ago

topolarity commented 1 year ago

This change adds preliminary Preferences.jl support, and also removes the dispatch-based "compile-time" tracepoint configuration we had before.

Here's an example:

[MyPkg.Tracy]
enabled = true
whitelist = ['foo', 'bar.*']
blacklist = ['baz']

This can be put into a LocalPreferences.toml as usual, or Tracy provides the non-standard option of putting it in a Preferences.toml adjacent to the Project.toml for your package.

If you provide a Preferences.toml with your package, the settings act as defaults for users of your package. Any LocalPreferences.toml can override those settings on a setting-by-setting basis.

topolarity commented 1 year ago

I suspect (or maybe hope rather) that our CI is flaky due to coalescing events since it's using a low-resolution timer.

Might have to try making the test zones longer lasting.