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

Side by Side Diff: src/heap.h

Issue 10961042: Implement committed physical memory stats for Linux. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix formatting. Created 8 years, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when 479 // Returns the capacity of the heap in bytes w/o growing. Heap grows when
480 // more spaces are needed until it reaches the limit. 480 // more spaces are needed until it reaches the limit.
481 intptr_t Capacity(); 481 intptr_t Capacity();
482 482
483 // Returns the amount of memory currently committed for the heap. 483 // Returns the amount of memory currently committed for the heap.
484 intptr_t CommittedMemory(); 484 intptr_t CommittedMemory();
485 485
486 // Returns the amount of executable memory currently committed for the heap. 486 // Returns the amount of executable memory currently committed for the heap.
487 intptr_t CommittedMemoryExecutable(); 487 intptr_t CommittedMemoryExecutable();
488 488
489 // Returns the amount of phyical memory currently committed for the heap.
490 size_t CommittedPhysicalMemory();
Yang 2012/09/24 14:05:35 Any reason why this is a size_t while the rest are
alph-g 2012/09/24 14:09:59 I have no idea why the rest are intptr_t. The retu
Michael Starzinger 2012/09/27 09:46:16 Yeah, the others should be size_t as well I guess.
491
489 // Returns the available bytes in space w/o growing. 492 // Returns the available bytes in space w/o growing.
490 // Heap doesn't guarantee that it can allocate an object that requires 493 // Heap doesn't guarantee that it can allocate an object that requires
491 // all available bytes. Check MaxHeapObjectSize() instead. 494 // all available bytes. Check MaxHeapObjectSize() instead.
492 intptr_t Available(); 495 intptr_t Available();
493 496
494 // Returns of size of all objects residing in the heap. 497 // Returns of size of all objects residing in the heap.
495 intptr_t SizeOfObjects(); 498 intptr_t SizeOfObjects();
496 499
497 // Return the starting address and a mask for the new space. And-masking an 500 // Return the starting address and a mask for the new space. And-masking an
498 // address with the mask will result in the start address of the new space 501 // address with the mask will result in the start address of the new space
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2796 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2794 2797
2795 private: 2798 private:
2796 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2799 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2797 }; 2800 };
2798 #endif // DEBUG || LIVE_OBJECT_LIST 2801 #endif // DEBUG || LIVE_OBJECT_LIST
2799 2802
2800 } } // namespace v8::internal 2803 } } // namespace v8::internal
2801 2804
2802 #endif // V8_HEAP_H_ 2805 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698