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

Side by Side Diff: src/platform-win32.cc

Issue 3831002: Support profiling based on linux kernel performance events. (Closed)
Patch Set: More fixes Created 10 years, 2 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
« no previous file with comments | « src/platform-solaris.cc ('k') | tools/ll_prof.py » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 // SharedLibraryEvents are logged when loading symbol information. 1210 // SharedLibraryEvents are logged when loading symbol information.
1211 // Only the shared libraries loaded at the time of the call to 1211 // Only the shared libraries loaded at the time of the call to
1212 // LogSharedLibraryAddresses are logged. DLLs loaded after 1212 // LogSharedLibraryAddresses are logged. DLLs loaded after
1213 // initialization are not accounted for. 1213 // initialization are not accounted for.
1214 if (!LoadDbgHelpAndTlHelp32()) return; 1214 if (!LoadDbgHelpAndTlHelp32()) return;
1215 HANDLE process_handle = GetCurrentProcess(); 1215 HANDLE process_handle = GetCurrentProcess();
1216 LoadSymbols(process_handle); 1216 LoadSymbols(process_handle);
1217 } 1217 }
1218 1218
1219 1219
1220 void OS::SignalCodeMovingGC() {
1221 }
1222
1223
1220 // Walk the stack using the facilities in dbghelp.dll and tlhelp32.dll 1224 // Walk the stack using the facilities in dbghelp.dll and tlhelp32.dll
1221 1225
1222 // Switch off warning 4748 (/GS can not protect parameters and local variables 1226 // Switch off warning 4748 (/GS can not protect parameters and local variables
1223 // from local buffer overrun because optimizations are disabled in function) as 1227 // from local buffer overrun because optimizations are disabled in function) as
1224 // it is triggered by the use of inline assembler. 1228 // it is triggered by the use of inline assembler.
1225 #pragma warning(push) 1229 #pragma warning(push)
1226 #pragma warning(disable : 4748) 1230 #pragma warning(disable : 4748)
1227 int OS::StackWalk(Vector<OS::StackFrame> frames) { 1231 int OS::StackWalk(Vector<OS::StackFrame> frames) {
1228 BOOL ok; 1232 BOOL ok;
1229 1233
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 1937
1934 // Release the thread handles 1938 // Release the thread handles
1935 CloseHandle(data_->sampler_thread_); 1939 CloseHandle(data_->sampler_thread_);
1936 CloseHandle(data_->profiled_thread_); 1940 CloseHandle(data_->profiled_thread_);
1937 } 1941 }
1938 1942
1939 1943
1940 #endif // ENABLE_LOGGING_AND_PROFILING 1944 #endif // ENABLE_LOGGING_AND_PROFILING
1941 1945
1942 } } // namespace v8::internal 1946 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-solaris.cc ('k') | tools/ll_prof.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698