Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: runtime/bin/process_linux.cc

Issue 10831005: Emit symbol maps for compiled code for use by the Linux perf tool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: pre-review changes Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/process.h" 5 #include "bin/process.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <poll.h> 9 #include <poll.h>
10 #include <signal.h> 10 #include <signal.h>
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 if (result == -1) { 556 if (result == -1) {
557 return false; 557 return false;
558 } 558 }
559 return true; 559 return true;
560 } 560 }
561 561
562 562
563 void Process::TerminateExitCodeHandler() { 563 void Process::TerminateExitCodeHandler() {
564 ExitCodeHandler::TerminateExitCodeThread(); 564 ExitCodeHandler::TerminateExitCodeThread();
565 } 565 }
566
567
568 intptr_t Process::CurrentProcessId() {
569 return static_cast<intptr_t>(getpid());
570 }
OLDNEW
« runtime/bin/main.cc ('K') | « runtime/bin/process.h ('k') | runtime/bin/process_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698