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

Side by Side Diff: src/heap.h

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/api.cc ('k') | src/heap.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 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 int* lo_space_size; // 13 1338 int* lo_space_size; // 13
1339 int* global_handle_count; // 14 1339 int* global_handle_count; // 14
1340 int* weak_global_handle_count; // 15 1340 int* weak_global_handle_count; // 15
1341 int* pending_global_handle_count; // 16 1341 int* pending_global_handle_count; // 16
1342 int* near_death_global_handle_count; // 17 1342 int* near_death_global_handle_count; // 17
1343 int* destroyed_global_handle_count; // 18 1343 int* destroyed_global_handle_count; // 18
1344 int* memory_allocator_size; // 19 1344 int* memory_allocator_size; // 19
1345 int* memory_allocator_capacity; // 20 1345 int* memory_allocator_capacity; // 20
1346 int* objects_per_type; // 21 1346 int* objects_per_type; // 21
1347 int* size_per_type; // 22 1347 int* size_per_type; // 22
1348 int* end_marker; // 23 1348 int* os_error; // 23
1349 int* end_marker; // 24
1349 }; 1350 };
1350 1351
1351 1352
1352 class AlwaysAllocateScope { 1353 class AlwaysAllocateScope {
1353 public: 1354 public:
1354 AlwaysAllocateScope() { 1355 AlwaysAllocateScope() {
1355 // We shouldn't hit any nested scopes, because that requires 1356 // We shouldn't hit any nested scopes, because that requires
1356 // non-handle code to call handle code. The code still works but 1357 // non-handle code to call handle code. The code still works but
1357 // performance will degrade, so we want to catch this situation 1358 // performance will degrade, so we want to catch this situation
1358 // in debug mode. 1359 // in debug mode.
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 1979
1979 // To speed up scavenge collections new space string are kept 1980 // To speed up scavenge collections new space string are kept
1980 // separate from old space strings. 1981 // separate from old space strings.
1981 static List<Object*> new_space_strings_; 1982 static List<Object*> new_space_strings_;
1982 static List<Object*> old_space_strings_; 1983 static List<Object*> old_space_strings_;
1983 }; 1984 };
1984 1985
1985 } } // namespace v8::internal 1986 } } // namespace v8::internal
1986 1987
1987 #endif // V8_HEAP_H_ 1988 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698