When I tried to profile this file
https://github.com/joa-quim/IUP.jl/blob/master/examples/sample_.jl
it errored with ERROR: function is not yet c-callable. This is not true since it runs and executes the callbacks when not in profiling mode.
This is Windows and sorry for not having a smaller/easier to run test case.
Joaquim