aboutsummaryrefslogtreecommitdiff
path: root/src/profiler/index.js
diff options
context:
space:
mode:
authorTom Harley2018-03-07 00:09:34 +0000
committerTom Harley2018-03-07 00:09:34 +0000
commitdf0ce932f9e20bde8b39cc81e24057f647c249ba (patch)
tree3b87b0dc5eac716c9f3778a53303e509c8e4a2e4 /src/profiler/index.js
parentBegin support for process manager (PM2) (diff)
downloadmedicine-df0ce932f9e20bde8b39cc81e24057f647c249ba.tar.gz
medicine-df0ce932f9e20bde8b39cc81e24057f647c249ba.zip

Tune PM2 configuration, and add pmx for profiling

Diffstat (limited to 'src/profiler/index.js')
-rw-r--r--src/profiler/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profiler/index.js b/src/profiler/index.js
new file mode 100644
index 0000000..59934fe
--- /dev/null
+++ b/src/profiler/index.js
@@ -0,0 +1,6 @@
+let pmx = require('pmx').init({
+ network: true,
+ ports: true
+});
+
+module.export.profiler = pmx.probe();