This is what I get if I define __EMSCRIPTEN_TRACING__ at the top of 
dlmalloc.c

20>  missing function: emscripten_trace_record_allocation
20>  
20>  c:\users\Foo\appdata\local\temp\tmpssry7t.js:90
20>        throw ex;
20>              ^
20>  abort(-1) at Error
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(1151): 'at jsStackTrace 
(c' 13)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(1168): 'at stackTrace (c' 
22)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(10767): 'at abort (c' 44)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(2045): 'at 
_emscripten_trace_record_allocation (c' 79)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(9717): 'at Array._malloc 
[as 0] (c' 4)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(571): 'at allocate (c' 
135)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(10622): 'at 
Object.callMain (c' 15)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(10692): 'at doRun (c' 60)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(10706): 'at run (c' 5)
20>  E:\users\Foo\appdata\local\temp\tmpssry7t.js(10793): 'at 
Object.<anonymous> (c' 1)

The other calls to library_trace.js have been linking.



On Tuesday, 1 September 2015 11:54:48 UTC+12, Bruce Mitchener wrote:
>
> On Tue, Sep 1, 2015 at 6:02 AM, Kieran Thawley <[email protected] 
> <javascript:>> 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.
>>
>
> What linking error is that causing?
>
>  - Bruce
>  
>

-- 
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