Skip to content

Does CodeTracking work inside of @compile_workload #145

@co1emi11er2

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?

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