 Issue 29333474:
  Issue 4125 - [emscripten] Convert filter classes to C++  (Closed)
    
  
    Issue 29333474:
  Issue 4125 - [emscripten] Convert filter classes to C++  (Closed) 
  | Index: compiled/traceInit.cpp | 
| =================================================================== | 
| new file mode 100644 | 
| --- /dev/null | 
| +++ b/compiled/traceInit.cpp | 
| @@ -0,0 +1,18 @@ | 
| +#include <emscripten/trace.h> | 
| + | 
| +#if defined(__EMSCRIPTEN_TRACING__) | 
| +struct InitTracing | 
| +{ | 
| + InitTracing() | 
| + { | 
| + emscripten_trace_configure("http://127.0.0.1:5000/", "MyApplication"); | 
| + } | 
| + | 
| + ~InitTracing() | 
| + { | 
| + emscripten_trace_close(); | 
| + } | 
| +}; | 
| + | 
| +InitTracing foo; | 
| +#endif |