OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "public/platform/WebThread.h" | 45 #include "public/platform/WebThread.h" |
46 #include "public/platform/WebTraceLocation.h" | 46 #include "public/platform/WebTraceLocation.h" |
47 #include "wtf/DataLog.h" | 47 #include "wtf/DataLog.h" |
48 #include "wtf/Partitions.h" | 48 #include "wtf/Partitions.h" |
49 #include "wtf/ThreadingPrimitives.h" | 49 #include "wtf/ThreadingPrimitives.h" |
50 | 50 |
51 #if OS(WIN) | 51 #if OS(WIN) |
52 #include <stddef.h> | 52 #include <stddef.h> |
53 #include <windows.h> | 53 #include <windows.h> |
54 #include <winnt.h> | 54 #include <winnt.h> |
55 #elif defined(__GLIBC__) | |
56 extern "C" void* __libc_stack_end; // NOLINT | |
57 #endif | 55 #endif |
58 | 56 |
59 #if defined(MEMORY_SANITIZER) | 57 #if defined(MEMORY_SANITIZER) |
60 #include <sanitizer/msan_interface.h> | 58 #include <sanitizer/msan_interface.h> |
61 #endif | 59 #endif |
62 | 60 |
63 #if OS(FREEBSD) | 61 #if OS(FREEBSD) |
64 #include <pthread_np.h> | 62 #include <pthread_np.h> |
65 #endif | 63 #endif |
66 | 64 |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 threadDump->addScalar("dead_count", "objects", totalDeadCount); | 1507 threadDump->addScalar("dead_count", "objects", totalDeadCount); |
1510 threadDump->addScalar("live_size", "bytes", totalLiveSize); | 1508 threadDump->addScalar("live_size", "bytes", totalLiveSize); |
1511 threadDump->addScalar("dead_size", "bytes", totalDeadSize); | 1509 threadDump->addScalar("dead_size", "bytes", totalDeadSize); |
1512 | 1510 |
1513 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); | 1511 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); |
1514 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); | 1512 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); |
1515 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); | 1513 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); |
1516 } | 1514 } |
1517 | 1515 |
1518 } // namespace blink | 1516 } // namespace blink |
OLD | NEW |