Skip to content

A remote server for the visualization of the data from Emscripten Trace API

Notifications You must be signed in to change notification settings

lluma/emscripten_trace_server

Repository files navigation

Trace Collector Server

A server for collecting tracing data from emscripten-compiled applications including memory profiling information.

Note: This codes are cloned from original implementation by waywardmonkeys.

Prerequisite

Set up a Python virtual environment:

virtualenv venv
source venv/bin/activate

Make sure Python (< 3.10) is installed in your system or change the python version in your terminal by pyenv. And activate the created virtual environment:

source venv/bin/activate

Then install the dependent python packages by below commands:

pip install setuptools==57.4.0 (if setuptools has been installed, uninstall it first)
pip install -r requirements.txt
pip install Flask-Cors

The reason why we install the specific version of setuptools, it's that the Jinja2 (2.7.3) only support the older version of setuptools.

Running The Server

Run the script:

python ./run-server.py

Collect Data

Make sure your client has configured the Emscripten trace tools in your source codes, you can check out the Emscripten document for more details.

About

A remote server for the visualization of the data from Emscripten Trace API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published