1
0
mirror of https://github.com/fluencelabs/wasmer synced 2024-12-15 15:15:40 +00:00
wasmer/lib/emscripten-tests/emtests/test_tracing.c

23 lines
627 B
C

/*
* Copyright 2016 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <emscripten/trace.h>
int main(int argc, const char* argv[]) {
emscripten_trace_configure_for_test();
emscripten_trace_enter_context("Application Startup");
emscripten_trace_log_message("Application", "starting up");
emscripten_trace_exit_context();
emscripten_trace_record_frame_start();
emscripten_trace_record_frame_end();
return 0;
}