diff --git a/filenames.gypi b/filenames.gypi index 8899b902fca3..162396bccf3d 100644 --- a/filenames.gypi +++ b/filenames.gypi @@ -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', diff --git a/lib/common/api/exports/electron.js b/lib/common/api/exports/electron.js index 1e9c2d71f3b7..b381a90d675d 100644 --- a/lib/common/api/exports/electron.js +++ b/lib/common/api/exports/electron.js @@ -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 index 000000000000..22ad34c6dd78 --- /dev/null +++ b/lib/common/api/process-stats.js @@ -0,0 +1 @@ +module.exports = process.atomBinding('process_stats')