Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin for SnoopPrecompile.jl #371

Open
nickrobinson251 opened this issue Oct 25, 2022 · 1 comment
Open

Add plugin for SnoopPrecompile.jl #371

nickrobinson251 opened this issue Oct 25, 2022 · 1 comment
Labels
Plugin Idea A proposal for a feature that can be accomplished with a plugin

Comments

@nickrobinson251
Copy link
Collaborator

We could set up the package to have code like

module MyPkg

using SnoopPrecompile

# Write your package code here.

@precompile_setup begin
    # Put here any variables that you want to use in `@precompile_all_calls`
    @precompile_all_calls begin
        # Put here all calls that you want to precompile
    end
end

end

c.f. https://github.com/timholy/SnoopCompile.jl/blob/ad792afcb320971231128479cff9baa3bd1245d0/docs/src/snoop_pc.md

Plus with SnoopPrecompile.jl added to the Project.toml.

Potentially such a plugin could allow users to configure some things e.g. compat for SnoopPrecompile.jl.

@nickrobinson251 nickrobinson251 added the Plugin Idea A proposal for a feature that can be accomplished with a plugin label Oct 25, 2022
@gdalle
Copy link
Collaborator

gdalle commented Jul 31, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Plugin Idea A proposal for a feature that can be accomplished with a plugin
Projects
None yet
Development

No branches or pull requests

2 participants