Skip to content

Does CodeTracking work inside of @compile_workload #145

Description

@co1emi11er2

I can't seem to get the @code_expr macro to work with PrecompileTools. I have tried using includet and importing module inside @compile_workload as well as @setup_workload. Nothing seems to work. It always returns nothing (things error when I try to use includet)

@setup_workload begin
    # Putting some things in `@setup_workload` instead of `@compile_workload` can reduce the size of the
    # precompile file and potentially make loading faster.
    using Revise
    using CodeTracking
    using TestHandcalcFunctions

    @compile_workload begin
        
        f = @code_expr calc_Ix(5, 15)
        println(f)

    end
end

Any thoughts?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions