Wire it up
authorPaul Betts <paul@paulbetts.org>
Sat, 14 May 2016 00:33:57 +0000 (17:33 -0700)
committerPaul Betts <paul@paulbetts.org>
Tue, 17 May 2016 21:47:56 +0000 (14:47 -0700)
filenames.gypi
lib/common/api/exports/electron.js
lib/common/api/process-stats.js [new file with mode: 0644]

index 8899b90..162396b 100644 (file)
@@ -44,6 +44,7 @@
       'lib/common/api/deprecations.js',
       'lib/common/api/exports/electron.js',
       'lib/common/api/native-image.js',
+      'lib/common/api/process-stats.js',
       'lib/common/api/shell.js',
       'lib/common/init.js',
       'lib/common/reset-search-paths.js',
index 1e9c2d7..b381a90 100644 (file)
@@ -21,6 +21,12 @@ exports.defineProperties = function (exports) {
         return require('../native-image')
       }
     },
+    processStats: {
+      enumerable: true,
+      get: function () {
+        return require('../process-stats')
+      }
+    },
     shell: {
       enumerable: true,
       get: function () {
diff --git a/lib/common/api/process-stats.js b/lib/common/api/process-stats.js
new file mode 100644 (file)
index 0000000..22ad34c
--- /dev/null
@@ -0,0 +1 @@
+module.exports = process.atomBinding('process_stats')