Most of the profile type logic can be shared between native heap graph profiles and profiles with aggregated statistics. Since we are going to add more details to the aggregated view it makes sense to unify the mechanisms first.
Created attachment 192428 [details] Patch
Comment on attachment 192428 [details] Patch lgtm
Created attachment 192443 [details] Patch
Created attachment 192445 [details] Patch
Comment on attachment 192445 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192445&action=review > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:446 > + var metaInformation = /** @type{HeapSnapshotMetainfo} */(graphMetaInformation); Whitespace in front of '(' (according to the code I've seen around) > Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js:585 > + this.sidebarElement.subtitle = Number.bytesToString(/** @type{number} */(this._memoryBlock.size)); ditto
Committed r145357: <http://trac.webkit.org/changeset/145357>