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

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

Issue 5325003: Simplify ProfLazyMode test on Linux. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 10 years 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 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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 data->Runner(); 1898 data->Runner();
1899 return 0; 1899 return 0;
1900 } 1900 }
1901 1901
1902 1902
1903 // Initialize a profile sampler. 1903 // Initialize a profile sampler.
1904 Sampler::Sampler(int interval, bool profiling) 1904 Sampler::Sampler(int interval, bool profiling)
1905 : interval_(interval), 1905 : interval_(interval),
1906 profiling_(profiling), 1906 profiling_(profiling),
1907 synchronous_(profiling), 1907 synchronous_(profiling),
1908 active_(false) { 1908 active_(false),
1909 samples_taken_(0) {
1909 data_ = new PlatformData(this); 1910 data_ = new PlatformData(this);
1910 } 1911 }
1911 1912
1912 1913
1913 Sampler::~Sampler() { 1914 Sampler::~Sampler() {
1914 delete data_; 1915 delete data_;
1915 } 1916 }
1916 1917
1917 1918
1918 // Start profiling. 1919 // Start profiling.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 1956
1956 // Release the thread handles 1957 // Release the thread handles
1957 CloseHandle(data_->sampler_thread_); 1958 CloseHandle(data_->sampler_thread_);
1958 CloseHandle(data_->profiled_thread_); 1959 CloseHandle(data_->profiled_thread_);
1959 } 1960 }
1960 1961
1961 1962
1962 #endif // ENABLE_LOGGING_AND_PROFILING 1963 #endif // ENABLE_LOGGING_AND_PROFILING
1963 1964
1964 } } // namespace v8::internal 1965 } } // namespace v8::internal
OLDNEW
« src/platform.h ('K') | « src/platform-solaris.cc ('k') | test/cctest/test-log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698