Added memory tracing for code cache in blink::Resource

Resource class in blink has a code cache that is used mainly for keeping
scripts in cache. Implemented OnMemoryDump() function in the subclasses of
code cache to see how much this memory this cache actually consumes so that
it can be optimized.


Bug: 918940
Change-Id: Iba9fbfb7025b0ff915dfecd4d85f0c3aed5b7d96
Reviewed-on: https://chromium-review.googlesource.com/c/1434654
Commit-Queue: Tanmoy Mollik <triploblastic@google.com>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: ssid <ssid@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631646}
9 files changed