<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[193873] trunk/Source</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/193873">193873</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2015-12-09 15:21:14 -0800 (Wed, 09 Dec 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>[iOS] ResourceUsageOverlay should work on iOS.
<https://webkit.org/b/152021>
Reviewed by Antti Koivisto.
Source/WebCore:
Make ResourceUsageOverlay work on iOS and on Mac desktops with UI-side compositing.
* page/ResourceUsageOverlay.cpp:
(WebCore::ResourceUsageOverlay::initialize): Move the overlay to the top of the view on iOS for now.
* page/ResourceUsageOverlay.h:
* page/cocoa/ResourceUsageOverlayCocoa.mm:
(WebCore::createColor): Make a custom CGColor factory since we can't use CGColorCreateGenericRGB on iOS.
(WebCore::MemoryCategoryInfo::MemoryCategoryInfo):
(WebCore::ResourceUsageOverlay::platformInitialize): Put the overlay CALayer into a container layer and
hook it up with GraphicsLayer::setContentsToPlatformLayer so it works with all compositing modes.
(WebCore::showText): Move CGContextSaveGState call to the top of the function to preserve everything.
(WebCore::drawGraphLabel):
(WebCore::drawCpuHistory):
(WebCore::drawGCHistory):
(WebCore::ResourceUsageOverlay::platformDraw): Flip the CGContext if needed.
(WebCore::runSamplerThread): Update the layer rects on each thread iteration. This shouldn't be
necessary but it papers over an issue where the containing layer would shrink down to 0x0 and
disappear. Added a FIXME for this.
* platform/spi/cocoa/MachVMSPI.h: Add purgeable VM SPI.
Source/WTF:
* wtf/Platform.h: Enable RESOURCE_USAGE_OVERLAY for all COCOA platforms.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfPlatformh">trunk/Source/WTF/wtf/Platform.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepageResourceUsageOverlaycpp">trunk/Source/WebCore/page/ResourceUsageOverlay.cpp</a></li>
<li><a href="#trunkSourceWebCorepageResourceUsageOverlayh">trunk/Source/WebCore/page/ResourceUsageOverlay.h</a></li>
<li><a href="#trunkSourceWebCorepagecocoaResourceUsageOverlayCocoamm">trunk/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformspicocoaMachVMSPIh">trunk/Source/WebCore/platform/spi/cocoa/MachVMSPI.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WTF/ChangeLog        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-12-09 Andreas Kling <akling@apple.com>
+
+ [iOS] ResourceUsageOverlay should work on iOS.
+ <https://webkit.org/b/152021>
+
+ Reviewed by Antti Koivisto.
+
+ * wtf/Platform.h: Enable RESOURCE_USAGE_OVERLAY for all COCOA platforms.
+
</ins><span class="cx"> 2015-12-08 Joseph Pecoraro <pecoraro@apple.com>
</span><span class="cx">
</span><span class="cx"> Create a Sandbox SPI header
</span></span></pre></div>
<a id="trunkSourceWTFwtfPlatformh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Platform.h (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Platform.h        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WTF/wtf/Platform.h        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -1079,7 +1079,7 @@
</span><span class="cx"> #define USE_IOSURFACE 1
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-#if PLATFORM(MAC)
</del><ins>+#if PLATFORM(COCOA)
</ins><span class="cx"> #define ENABLE_RESOURCE_USAGE_OVERLAY 1
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WebCore/ChangeLog        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -1,3 +1,30 @@
</span><ins>+2015-12-09 Andreas Kling <akling@apple.com>
+
+ [iOS] ResourceUsageOverlay should work on iOS.
+ <https://webkit.org/b/152021>
+
+ Reviewed by Antti Koivisto.
+
+ Make ResourceUsageOverlay work on iOS and on Mac desktops with UI-side compositing.
+
+ * page/ResourceUsageOverlay.cpp:
+ (WebCore::ResourceUsageOverlay::initialize): Move the overlay to the top of the view on iOS for now.
+ * page/ResourceUsageOverlay.h:
+ * page/cocoa/ResourceUsageOverlayCocoa.mm:
+ (WebCore::createColor): Make a custom CGColor factory since we can't use CGColorCreateGenericRGB on iOS.
+ (WebCore::MemoryCategoryInfo::MemoryCategoryInfo):
+ (WebCore::ResourceUsageOverlay::platformInitialize): Put the overlay CALayer into a container layer and
+ hook it up with GraphicsLayer::setContentsToPlatformLayer so it works with all compositing modes.
+ (WebCore::showText): Move CGContextSaveGState call to the top of the function to preserve everything.
+ (WebCore::drawGraphLabel):
+ (WebCore::drawCpuHistory):
+ (WebCore::drawGCHistory):
+ (WebCore::ResourceUsageOverlay::platformDraw): Flip the CGContext if needed.
+ (WebCore::runSamplerThread): Update the layer rects on each thread iteration. This shouldn't be
+ necessary but it papers over an issue where the containing layer would shrink down to 0x0 and
+ disappear. Added a FIXME for this.
+ * platform/spi/cocoa/MachVMSPI.h: Add purgeable VM SPI.
+
</ins><span class="cx"> 2015-12-09 Brady Eidson <beidson@apple.com>
</span><span class="cx">
</span><span class="cx"> Modern IDB: storage/indexeddb/database-closepending-flag.html fails.
</span></span></pre></div>
<a id="trunkSourceWebCorepageResourceUsageOverlaycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ResourceUsageOverlay.cpp (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ResourceUsageOverlay.cpp        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WebCore/page/ResourceUsageOverlay.cpp        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -61,7 +61,15 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> FrameView& frameView = *m_page.mainFrame().view();
</span><del>- m_overlay->setFrame(IntRect(frameView.width() / 2 - normalWidth / 2, frameView.height() - normalHeight - 20, normalWidth, normalHeight));
</del><ins>+
+ IntRect initialRect(frameView.width() / 2 - normalWidth / 2, frameView.height() - normalHeight - 20, normalWidth, normalHeight);
+
+#if PLATFORM(IOS)
+ // FIXME: The overlay should be stuck to the viewport instead of moving along with the page.
+ initialRect.setY(20);
+#endif
+
+ m_overlay->setFrame(initialRect);
</ins><span class="cx"> m_overlay->setShouldIgnoreMouseEventsOutsideBounds(false);
</span><span class="cx"> m_page.mainFrame().pageOverlayController().installPageOverlay(m_overlay.get(), PageOverlay::FadeMode::DoNotFade);
</span><span class="cx"> platformInitialize();
</span></span></pre></div>
<a id="trunkSourceWebCorepageResourceUsageOverlayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/ResourceUsageOverlay.h (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/ResourceUsageOverlay.h        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WebCore/page/ResourceUsageOverlay.h        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -58,6 +58,9 @@
</span><span class="cx"> void platformDraw(CGContextRef);
</span><span class="cx"> #endif
</span><span class="cx">
</span><ins>+ static const int normalWidth = 570;
+ static const int normalHeight = 130;
+
</ins><span class="cx"> private:
</span><span class="cx"> void pageOverlayDestroyed(PageOverlay&) override { }
</span><span class="cx"> void willMoveToPage(PageOverlay&, Page*) override { }
</span><span class="lines">@@ -79,10 +82,8 @@
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx"> ThreadIdentifier m_threadID { 0 };
</span><span class="cx"> RetainPtr<CALayer> m_layer;
</span><ins>+ RetainPtr<CALayer> m_containerLayer;
</ins><span class="cx"> #endif
</span><del>-
- static const int normalWidth = 570;
- static const int normalHeight = 130;
</del><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorepagecocoaResourceUsageOverlayCocoamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -144,6 +144,13 @@
</span><span class="cx"> static const unsigned NumberOfCategories = 8;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+static CGColorRef createColor(float r, float g, float b, float a)
+{
+ static CGColorSpaceRef colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
+ CGFloat components[4] = { r, g, b, a };
+ return CGColorCreate(colorSpace, components);
+}
+
</ins><span class="cx"> struct MemoryCategoryInfo {
</span><span class="cx"> MemoryCategoryInfo() { } // Needed for std::array.
</span><span class="cx">
</span><span class="lines">@@ -154,7 +161,7 @@
</span><span class="cx"> {
</span><span class="cx"> float r, g, b, a;
</span><span class="cx"> Color(rgba).getRGBA(r, g, b, a);
</span><del>- color = adoptCF(CGColorCreateGenericRGB(r, g, b, a));
</del><ins>+ color = adoptCF(createColor(r, g, b, a));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> String name;
</span><span class="lines">@@ -217,12 +224,19 @@
</span><span class="cx">
</span><span class="cx"> m_layer = adoptNS([[WebOverlayLayer alloc] initWithResourceUsageOverlay:this]);
</span><span class="cx">
</span><del>- [overlay().layer().platformLayer() addSublayer:m_layer.get()];
</del><ins>+ m_containerLayer = adoptNS([[CALayer alloc] init]);
+ [m_containerLayer.get() addSublayer:m_layer.get()];
</ins><span class="cx">
</span><ins>+ [m_containerLayer.get() setAnchorPoint:CGPointZero];
+ [m_containerLayer.get() setBounds:CGRectMake(0, 0, normalWidth, normalHeight)];
+
+ [m_layer.get() setAnchorPoint:CGPointZero];
</ins><span class="cx"> [m_layer.get() setContentsScale:2.0];
</span><del>- [m_layer.get() setBackgroundColor:adoptCF(CGColorCreateGenericRGB(0, 0, 0, 0.8)).get()];
- [m_layer.get() setFrame:CGRectMake(0, 0, normalWidth, normalHeight)];
</del><ins>+ [m_layer.get() setBackgroundColor:adoptCF(createColor(0, 0, 0, 0.8)).get()];
+ [m_layer.get() setBounds:CGRectMake(0, 0, normalWidth, normalHeight)];
</ins><span class="cx">
</span><ins>+ overlay().layer().setContentsToPlatformLayer(m_layer.get(), GraphicsLayer::NoContentsLayer);
+
</ins><span class="cx"> data.overlayLayers.add(m_layer.get());
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -235,17 +249,23 @@
</span><span class="cx">
</span><span class="cx"> static void showText(CGContextRef context, float x, float y, CGColorRef color, const String& text)
</span><span class="cx"> {
</span><ins>+ CGContextSaveGState(context);
+
</ins><span class="cx"> CGContextSetTextDrawingMode(context, kCGTextFill);
</span><span class="cx"> CGContextSetFillColorWithColor(context, color);
</span><span class="cx">
</span><del>- CGContextSaveGState(context);
-
</del><span class="cx"> CGContextSetTextMatrix(context, CGAffineTransformMakeScale(1, -1));
</span><span class="cx">
</span><span class="cx"> // FIXME: Don't use deprecated APIs.
</span><span class="cx"> #pragma clang diagnostic push
</span><span class="cx"> #pragma clang diagnostic ignored "-Wdeprecated-declarations"
</span><ins>+
+#if PLATFORM(IOS)
+ CGContextSelectFont(context, "Courier", 10, kCGEncodingMacRoman);
+#else
</ins><span class="cx"> CGContextSelectFont(context, "Menlo", 11, kCGEncodingMacRoman);
</span><ins>+#endif
+
</ins><span class="cx"> CString cstr = text.ascii();
</span><span class="cx"> CGContextShowTextAtPoint(context, x, y, cstr.data(), cstr.length());
</span><span class="cx"> #pragma clang diagnostic pop
</span><span class="lines">@@ -255,15 +275,15 @@
</span><span class="cx">
</span><span class="cx"> static void drawGraphLabel(CGContextRef context, float x, float y, const String& text)
</span><span class="cx"> {
</span><del>- static CGColorRef black = CGColorCreateGenericRGB(0, 0, 0, 1);
</del><ins>+ static CGColorRef black = createColor(0, 0, 0, 1);
</ins><span class="cx"> showText(context, x + 5, y - 3, black, text);
</span><del>- static CGColorRef white = CGColorCreateGenericRGB(1, 1, 1, 1);
</del><ins>+ static CGColorRef white = createColor(1, 1, 1, 1);
</ins><span class="cx"> showText(context, x + 4, y - 4, white, text);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static void drawCpuHistory(CGContextRef context, float x1, float y1, float y2, RingBuffer<float>& history)
</span><span class="cx"> {
</span><del>- static CGColorRef cpuColor = CGColorCreateGenericRGB(0, 1, 0, 1);
</del><ins>+ static CGColorRef cpuColor = createColor(0, 1, 0, 1);
</ins><span class="cx">
</span><span class="cx"> CGContextSetStrokeColorWithColor(context, cpuColor);
</span><span class="cx"> CGContextSetLineWidth(context, 1);
</span><span class="lines">@@ -296,7 +316,7 @@
</span><span class="cx">
</span><span class="cx"> CGContextSetLineWidth(context, 1);
</span><span class="cx">
</span><del>- static CGColorRef capacityColor = CGColorCreateGenericRGB(1, 0, 0.3, 1);
</del><ins>+ static CGColorRef capacityColor = createColor(1, 0, 0.3, 1);
</ins><span class="cx"> CGContextSetStrokeColorWithColor(context, capacityColor);
</span><span class="cx">
</span><span class="cx"> size_t i = 0;
</span><span class="lines">@@ -310,7 +330,7 @@
</span><span class="cx"> i++;
</span><span class="cx"> });
</span><span class="cx">
</span><del>- static CGColorRef sizeColor = CGColorCreateGenericRGB(0.6, 0.5, 0.9, 1);
</del><ins>+ static CGColorRef sizeColor = createColor(0.6, 0.5, 0.9, 1);
</ins><span class="cx"> CGContextSetStrokeColorWithColor(context, sizeColor);
</span><span class="cx">
</span><span class="cx"> i = 0;
</span><span class="lines">@@ -414,13 +434,18 @@
</span><span class="cx"> auto& data = sharedData();
</span><span class="cx"> LockHolder locker(data.lock);
</span><span class="cx">
</span><ins>+ if (![m_layer.get() contentsAreFlipped]) {
+ CGContextScaleCTM(context, 1, -1);
+ CGContextTranslateCTM(context, 0, -normalHeight);
+ }
+
</ins><span class="cx"> CGContextSetShouldAntialias(context, false);
</span><span class="cx"> CGContextSetShouldSmoothFonts(context, false);
</span><span class="cx">
</span><span class="cx"> CGRect viewBounds = m_overlay->bounds();
</span><span class="cx"> CGContextClearRect(context, viewBounds);
</span><span class="cx">
</span><del>- static CGColorRef colorForLabels = CGColorCreateGenericRGB(0.9, 0.9, 0.9, 1);
</del><ins>+ static CGColorRef colorForLabels = createColor(0.9, 0.9, 0.9, 1);
</ins><span class="cx"> showText(context, 10, 20, colorForLabels, String::format(" CPU: %g", data.cpuHistory.last()));
</span><span class="cx"> showText(context, 10, 30, colorForLabels, " Footprint: " + formatByteNumber(data.totalDirty.last()));
</span><span class="cx">
</span><span class="lines">@@ -587,8 +612,15 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> [CATransaction begin];
</span><del>- for (CALayer *layer : layers)
</del><ins>+ for (CALayer *layer : layers) {
+ // FIXME: It shouldn't be necessary to update the bounds on every single thread loop iteration,
+ // but something is causing them to become 0x0.
+ CALayer *containerLayer = [layer superlayer];
+ CGRect rect = CGRectMake(0, 0, ResourceUsageOverlay::normalWidth, ResourceUsageOverlay::normalHeight);
+ [layer setBounds:rect];
+ [containerLayer setBounds:rect];
</ins><span class="cx"> [layer setNeedsDisplay];
</span><ins>+ }
</ins><span class="cx"> [CATransaction commit];
</span><span class="cx">
</span><span class="cx"> // FIXME: Find a way to get the size of the current GC heap size safely from the sampler thread.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformspicocoaMachVMSPIh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/spi/cocoa/MachVMSPI.h (193872 => 193873)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/spi/cocoa/MachVMSPI.h        2015-12-09 23:07:10 UTC (rev 193872)
+++ trunk/Source/WebCore/platform/spi/cocoa/MachVMSPI.h        2015-12-09 23:21:14 UTC (rev 193873)
</span><span class="lines">@@ -42,5 +42,6 @@
</span><span class="cx"> EXTERN_C kern_return_t mach_vm_region(vm_map_t targetTask, mach_vm_address_t*, mach_vm_size_t*, vm_region_flavor_t, vm_region_info_t,
</span><span class="cx"> mach_msg_type_number_t* infoCount, mach_port_t* objectName);
</span><span class="cx"> EXTERN_C kern_return_t mach_vm_region_recurse(vm_map_t targetTask, mach_vm_address_t*, mach_vm_size_t*, uint32_t* depth, vm_region_recurse_info_t, mach_msg_type_number_t* infoCount);
</span><ins>+EXTERN_C kern_return_t mach_vm_purgable_control(vm_map_t target, mach_vm_address_t, vm_purgable_t control, int* state);
</ins><span class="cx">
</span><span class="cx"> #endif // MachVMSPI_h
</span></span></pre>
</div>
</div>
</body>
</html>