wasmer/lib/emscripten-tests/emtests/test_tracing.c

23 lines
627 B
C
Raw Normal View History

2018-12-27 07:46:41 +00:00
/*
* 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;
}