Hi,

I have found that when dlmalloc.c is being compiled the user specified 
cflags (such as __EMSCRIPTEN_TRACING__) are not being passed into 
system_libs.py : create_dlmalloc, once I make the change to fix this it 
then runs into the issue that when calling:
shared.Building.ensure_struct_info(struct_info)
in emscripten.py the "struct info" .js file cant link due to 
"library_trace.js" not being included.

Im just wanting to know if anyone knows a way around this? or if the 
ensure_struct_info 
call is even needed? else will I need to find a way to get the libraries 
linking in?


On Tuesday, 1 September 2015 11:02:04 UTC+12, Kieran Thawley wrote:
>
> I'm wanting to use the Trace API for some memory profiling, but running 
> into some issues getting the __EMSCRIPTEN_TRACING__ define passed to 
> dlmalloc.c
>
> I'm using the Visual Studio integration to build the project, the emcc 
> --tracing argument is being passed in during the compiling and linking 
> stages, and I have run `emcc --clear-cache`.
> With verbose enabled I can see __EMSCRIPTEN_TRACING__  being passed to 
> clang.
> I have also tried defining  __EMSCRIPTEN_TRACING__ in dlmalloc.c but this 
> seems to cause linking errors.
>
> Everything else in the API is working and being logged in the trace 
> collector.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to