Add a system trace point for memory warning handling
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Mar 2017 02:04:59 +0000 (02:04 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Mar 2017 02:04:59 +0000 (02:04 +0000)
commit4b778c8b96d16cb5ba4cb0b79882acf3b5abbfe9
treee25e0117f5d3db8df97d338cffc2f3ca0f72b25a
parent4ec1db333a77b657eba754b11358b9349ae150e6
Add a system trace point for memory warning handling
https://bugs.webkit.org/show_bug.cgi?id=169893

Reviewed by Zalan Bujtas.

Source/WebCore:

Add a TraceScope for low memory handling, which logs 'critical' and 'synchronous'.

* page/MemoryRelease.cpp:
(WebCore::releaseMemory):

Source/WTF:

Make it possible to pass data to the Begin trace point.

* wtf/SystemTracing.h:
(WTF::TraceScope::TraceScope):

Tools:

Describe the new trace points.

* Tracing/SystemTracePoints.plist:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/SystemTracing.h
Source/WebCore/ChangeLog
Source/WebCore/page/MemoryRelease.cpp
Tools/ChangeLog
Tools/Tracing/SystemTracePoints.plist