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

Side by Side Diff: src/d8-debug.h

Issue 6070009: Added labelled thread names to help with some debugging activity. Right now,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « src/d8.cc ('k') | src/debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 RemoteDebuggerEvent* tail_; 91 RemoteDebuggerEvent* tail_;
92 92
93 friend class ReceiverThread; 93 friend class ReceiverThread;
94 }; 94 };
95 95
96 96
97 // Thread reading from debugged V8 instance. 97 // Thread reading from debugged V8 instance.
98 class ReceiverThread: public i::Thread { 98 class ReceiverThread: public i::Thread {
99 public: 99 public:
100 explicit ReceiverThread(RemoteDebugger* remote_debugger) 100 explicit ReceiverThread(RemoteDebugger* remote_debugger)
101 : remote_debugger_(remote_debugger) {} 101 : Thread("d8:ReceiverThrd"),
102 remote_debugger_(remote_debugger) {}
102 ~ReceiverThread() {} 103 ~ReceiverThread() {}
103 104
104 void Run(); 105 void Run();
105 106
106 private: 107 private:
107 RemoteDebugger* remote_debugger_; 108 RemoteDebugger* remote_debugger_;
108 }; 109 };
109 110
110 111
111 // Thread reading keyboard input. 112 // Thread reading keyboard input.
112 class KeyboardThread: public i::Thread { 113 class KeyboardThread: public i::Thread {
113 public: 114 public:
114 explicit KeyboardThread(RemoteDebugger* remote_debugger) 115 explicit KeyboardThread(RemoteDebugger* remote_debugger)
115 : remote_debugger_(remote_debugger) {} 116 : Thread("d8:KeyboardThrd"),
117 remote_debugger_(remote_debugger) {}
116 ~KeyboardThread() {} 118 ~KeyboardThread() {}
117 119
118 void Run(); 120 void Run();
119 121
120 private: 122 private:
121 RemoteDebugger* remote_debugger_; 123 RemoteDebugger* remote_debugger_;
122 }; 124 };
123 125
124 126
125 // Events processed by the main deubgger thread. 127 // Events processed by the main deubgger thread.
(...skipping 20 matching lines...) Expand all
146 RemoteDebuggerEvent* next_; 148 RemoteDebuggerEvent* next_;
147 149
148 friend class RemoteDebugger; 150 friend class RemoteDebugger;
149 }; 151 };
150 152
151 153
152 } // namespace v8 154 } // namespace v8
153 155
154 156
155 #endif // V8_D8_DEBUG_H_ 157 #endif // V8_D8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698