summaryrefslogtreecommitdiffstats
path: root/base/process_util_win.cc
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_win.cc
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_win.cc')
-rw-r--r--base/process_util_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index aad336cf..24689a1 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -28,6 +28,10 @@ int GetCurrentProcId() {
return ::GetCurrentProcessId();
}
+ProcessHandle GetCurrentProcessHandle() {
+ return ::GetCurrentProcess();
+}
+
// Helper for GetProcId()
bool GetProcIdViaGetProcessId(ProcessHandle process, DWORD* id) {
// Dynamically get a pointer to GetProcessId().