Permalink
Please sign in to comment.
Browse files
profiler: add SPSProfiler implementation
Currently this is Linux only as it requires the Linux implementation of POSIX signals. There is a simple API, and the profile output is written to /tmp/gjs-profile-<pid>. Description of the capture format is provided in profile.cpp. For apps started with gjs-console, you can toggle on/off profiling by sending SIGUSR2 to the process.
- Loading branch information...
Showing
with
2,639 additions
and 11 deletions.
- +19 −11 Makefile.am
- +2 −0 gjs/compat.h
- +15 −0 gjs/console.cpp
- +1 −0 gjs/gjs-module.h
- +2 −0 gjs/jsapi-private.cpp
- +556 −0 gjs/profiler.cpp
- +44 −0 gjs/profiler.h
- +32 −0 test/gjs-tests.cpp
- +686 −0 util/sp-capture-reader.c
- +65 −0 util/sp-capture-reader.h
- +155 −0 util/sp-capture-types.h
- +954 −0 util/sp-capture-writer.c
- +108 −0 util/sp-capture-writer.h
30
Makefile.am
Oops, something went wrong.
0 comments on commit
46eff4e