Browse Source

purgedSize and purgeableSize are removed by Chrome

Cheng Zhao 8 years ago
parent
commit
5e43ea227e

+ 0 - 3
atom/common/native_mate_converters/blink_converter.cc

@@ -445,9 +445,6 @@ v8::Local<v8::Value> Converter<blink::WebCache::ResourceTypeStat>::ToV8(
   dict.Set("count", static_cast<uint32_t>(stat.count));
   dict.Set("size", static_cast<double>(stat.size));
   dict.Set("liveSize", static_cast<double>(stat.liveSize));
-  dict.Set("decodedSize", static_cast<double>(stat.decodedSize));
-  dict.Set("purgedSize", static_cast<double>(stat.purgedSize));
-  dict.Set("purgeableSize", static_cast<double>(stat.purgeableSize));
   return dict.GetHandle();
 }
 

+ 0 - 3
docs-translations/ko-KR/api/structures/memory-usage-details.md

@@ -3,6 +3,3 @@
 * `count` Number
 * `size` Number
 * `liveSize` Number
-* `decodedSize` Number
-* `purgedSize` Number
-* `purgeableSize` Number

+ 1 - 4
docs-translations/ko-KR/api/web-frame.md

@@ -144,10 +144,7 @@ console.log(webFrame.getResourceUsage())
   images: {
     count: 22,
     size: 2549,
-    liveSize: 2542,
-    decodedSize: 478,
-    purgedSize: 0,
-    purgeableSize: 0
+    liveSize: 2542
   },
   cssStyleSheets: { /* same with "images" */ },
   xslStyleSheets: { /* same with "images" */ },

+ 0 - 3
docs-translations/zh-TW/api/structures/memory-usage-details.md

@@ -3,6 +3,3 @@
 * `count` 數字
 * `size` 數字
 * `liveSize` 數字
-* `decodedSize` 數字
-* `purgedSize` 數字
-* `purgeableSize` 數字

+ 0 - 3
docs/api/structures/memory-usage-details.md

@@ -3,6 +3,3 @@
 * `count` Number
 * `size` Number
 * `liveSize` Number
-* `decodedSize` Number
-* `purgedSize` Number
-* `purgeableSize` Number

+ 1 - 4
docs/api/web-frame.md

@@ -167,10 +167,7 @@ This will generate:
   images: {
     count: 22,
     size: 2549,
-    liveSize: 2542,
-    decodedSize: 478,
-    purgedSize: 0,
-    purgeableSize: 0
+    liveSize: 2542
   },
   cssStyleSheets: { /* same with "images" */ },
   xslStyleSheets: { /* same with "images" */ },