julia> immutable JCopt
build_path::Ptr{Uint8}
cc::Int8
ml::Int8
cb::Int8
dbc::Int8
il::Cint
ce::Int8
end
julia> a = cglobal(:(jl_compileropts))
Ptr{Void} @0x000000006d7daf90
julia> unsafe_load(reinterpret(Ptr{JCopt}, a))
JCopt(Ptr{Uint8} @0x0000000000000000,1,0,0,0,0,16)
On Mon, Sep 15, 2014 at 12:30 PM, Steve Kelly <[email protected]> wrote:
> I'd like to see if Julia is running in code-coverage mode or not.
>
> In the REPL I can do the following:
>
> julia> a = cglobal(:(jl_compileropts))
> Ptr{Void} @0x00007fa3e01bbc90
>
>
> The struct is defined like so:
>
> https://github.com/JuliaLang/julia/blob/aab2c6e67b5aaee7f23bc5a52897f7219473c153/src/julia.h#L1330-L1338
>
> How can I access the code_coverage member?
>
> Thanks,
> Steve
>