summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 20:42:55 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 20:42:55 +0000
commit113ab13f317a212284c022771438705c6cba6227 (patch)
tree7c92495aa899a2cdf20be7819ef69b3d06a42533 /base/process_util.h
parent37cbdcc9964ad7b3af8a5420fdbaebe67d11a60c (diff)
downloadchromium_src-113ab13f317a212284c022771438705c6cba6227.zip
chromium_src-113ab13f317a212284c022771438705c6cba6227.tar.gz
chromium_src-113ab13f317a212284c022771438705c6cba6227.tar.bz2
* Change output of trace_event log to JSON to enable easier integration with visualization UI.
* Simple (manual) trace visualizer with some sample data. * a few more trace events * add process_util function for current process handle Review URL: http://codereview.chromium.org/3086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index dc9fcc2..1a50e4a 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -32,6 +32,9 @@ namespace process_util {
// Returns the id of the current process.
int GetCurrentProcId();
+// Returns the ProcessHandle of the current process.
+ProcessHandle GetCurrentProcessHandle();
+
// Returns the unique ID for the specified process. This is functionally the
// same as Windows' GetProcessId(), but works on versions of Windows before
// Win XP SP1 as well.