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

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

Issue 3118013: Add last OS error into heap stats. (Closed)
Patch Set: rename errno to os_error Created 10 years, 4 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-posix.cc ('k') | no next file » | 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 644
645 645
646 // Returns the daylight savings offset in milliseconds for the given 646 // Returns the daylight savings offset in milliseconds for the given
647 // time. 647 // time.
648 double OS::DaylightSavingsOffset(double time) { 648 double OS::DaylightSavingsOffset(double time) {
649 int64_t offset = Time(time).DaylightSavingsOffset(); 649 int64_t offset = Time(time).DaylightSavingsOffset();
650 return static_cast<double>(offset); 650 return static_cast<double>(offset);
651 } 651 }
652 652
653 653
654 int OS::GetLastError() {
655 return ::GetLastError();
656 }
657
658
654 // ---------------------------------------------------------------------------- 659 // ----------------------------------------------------------------------------
655 // Win32 console output. 660 // Win32 console output.
656 // 661 //
657 // If a Win32 application is linked as a console application it has a normal 662 // If a Win32 application is linked as a console application it has a normal
658 // standard output and standard error. In this case normal printf works fine 663 // standard output and standard error. In this case normal printf works fine
659 // for output. However, if the application is linked as a GUI application, 664 // for output. However, if the application is linked as a GUI application,
660 // the process doesn't have a console, and therefore (debugging) output is lost. 665 // the process doesn't have a console, and therefore (debugging) output is lost.
661 // This is the case if we are embedded in a windows program (like a browser). 666 // This is the case if we are embedded in a windows program (like a browser).
662 // In order to be able to get debug output in this case the the debugging 667 // In order to be able to get debug output in this case the the debugging
663 // facility using OutputDebugString. This output goes to the active debugger 668 // facility using OutputDebugString. This output goes to the active debugger
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 1933
1929 // Release the thread handles 1934 // Release the thread handles
1930 CloseHandle(data_->sampler_thread_); 1935 CloseHandle(data_->sampler_thread_);
1931 CloseHandle(data_->profiled_thread_); 1936 CloseHandle(data_->profiled_thread_);
1932 } 1937 }
1933 1938
1934 1939
1935 #endif // ENABLE_LOGGING_AND_PROFILING 1940 #endif // ENABLE_LOGGING_AND_PROFILING
1936 1941
1937 } } // namespace v8::internal 1942 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698