julia> immutable CompilerOpts
       build_path::Ptr{Cchar}
       code_coverage::Int8
       malloc_log::Int8
       check_bounds::Int8
       dumpbitcode::Int8
       int_literals::Cint
       compile_enabled::Int8
       end

julia> a = cglobal(:jl_compileropts, CompilerOpts)
Ptr{CompilerOpts} @0x000000010f840a88

julia> unsafe_load(a)
CompilerOpts(Ptr{Int8} @0x0000000000000000,0,0,0,0,0,1)

On Monday, September 15, 2014 12:30:48 PM UTC-4, Steve Kelly 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
>

Reply via email to