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

Side by Side Diff: Source/platform/heap/ThreadState.h

Issue 717923005: Profile FreeList Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 void visitAsanFakeStackForPointer(Visitor*, Address); 624 void visitAsanFakeStackForPointer(Visitor*, Address);
625 625
626 // Visit all persistents allocated on this thread. 626 // Visit all persistents allocated on this thread.
627 void visitPersistents(Visitor*); 627 void visitPersistents(Visitor*);
628 628
629 #if ENABLE(GC_PROFILE_MARKING) 629 #if ENABLE(GC_PROFILE_MARKING)
630 const GCInfo* findGCInfo(Address); 630 const GCInfo* findGCInfo(Address);
631 static const GCInfo* findGCInfoFromAllThreads(Address); 631 static const GCInfo* findGCInfoFromAllThreads(Address);
632 #endif 632 #endif
633 633
634 #if ENABLE(GC_PROFILE_FREE_LIST)
635 void snapshotFreeListIfNecessary();
636 void snapshotFreeList();
637 #endif
638
634 #if ENABLE(GC_PROFILE_HEAP) 639 #if ENABLE(GC_PROFILE_HEAP)
635 struct SnapshotInfo { 640 struct SnapshotInfo {
636 ThreadState* state; 641 ThreadState* state;
637 642
638 size_t freeSize; 643 size_t freeSize;
639 size_t pageCount; 644 size_t pageCount;
640 645
641 // Map from base-classes to a snapshot class-ids (used as index below). 646 // Map from base-classes to a snapshot class-ids (used as index below).
642 HashMap<const GCInfo*, size_t> classTags; 647 HashMap<const GCInfo*, size_t> classTags;
643 648
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 // HeapPage header. We use some of the bits to determine 910 // HeapPage header. We use some of the bits to determine
906 // whether the page is part of a terminting thread or 911 // whether the page is part of a terminting thread or
907 // if the page is traced after being terminated (orphaned). 912 // if the page is traced after being terminated (orphaned).
908 uintptr_t m_terminating : 1; 913 uintptr_t m_terminating : 1;
909 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2 914 uintptr_t m_promptlyFreedSize : 17; // == blinkPageSizeLog2
910 }; 915 };
911 916
912 } // namespace blink 917 } // namespace blink
913 918
914 #endif // ThreadState_h 919 #endif // ThreadState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698