From: Paul Betts Date: Sat, 14 May 2016 00:33:57 +0000 (-0700) Subject: Wire it up X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4538daa0a2a632af5b3eb675a7dfb3c0de46260;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Wire it up --- diff --git a/filenames.gypi b/filenames.gypi index 8899b90..162396b 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 1e9c2d7..b381a90 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 0000000..22ad34c --- /dev/null +++ b/lib/common/api/process-stats.js @@ -0,0 +1 @@ +module.exports = process.atomBinding('process_stats')