Skip to content

ku-plrg/nodeprof-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

A Docker wrapper for nodeprof.js, because the repository no longer provides Docker-packaged releases of the latest nodeprof.js.

Build

$ docker build -t nodeprof .

NOTE: You might encounter a build failure due to insufficient RAM:

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [tools/v8_gypfiles/v8_base_without_compiler.target.mk:194: /works/graaljs/graal-nodejs/out/Release/obj.target/v8_base_without_compiler/deps/v8/src/graal/callbacks.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:139: node] Error 2

Usage

$ docker run --rm -v $(pwd):/works/nodeprof.js/input nodeprof # args ...

If you want a shorter command, create an alias:

$ alias nodeprof='docker run --rm -v $(pwd):/works/nodeprof.js/input nodeprof' # WARNING use ' instead of " so $(pwd) is evaluated at runtime

Check Haiyang-Sun/nodeprof.js > Tutorial.md for details.

mx jalangi [--analysis pathToAnalsis]* pathToMainProgram [arg]* will run several Jalangi analyses for the program specified with pathToMainProgram with arguments.

You can set a coarse-grained instrumentation scope for your analysis: mx jalangi --scope=[app|module|all].
app: only the application code (without any code in the npm_modules folder or internal libraries);
module: app code plus the node module code;
all: all the code including internal library, node modules and application code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published