@perfsee/flamechart
Advanced tools
Comparing version 1.7.2 to 1.8.2
@@ -56,3 +56,3 @@ import { __assign } from "tslib"; | ||
fontFamily: theme.fontFamily, | ||
zIndex: 2, | ||
zIndex: 99999999, | ||
boxShadow: 'rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px', | ||
@@ -59,0 +59,0 @@ } }, { children: _jsx("div", __assign({ style: { |
@@ -87,2 +87,3 @@ import { KeyedSet } from './utils'; | ||
getInvertedProfileForCallersOf(focalFrame: Frame): Profile; | ||
getNonIdleProfile(): Profile; | ||
getProfileForCalleesOf(focalFrame: Frame): Profile; | ||
@@ -89,0 +90,0 @@ remapSymbols(callback: SymbolRemapper): void; |
@@ -326,2 +326,20 @@ import { __extends, __values } from "tslib"; | ||
}; | ||
Profile.prototype.getNonIdleProfile = function () { | ||
var _this = this; | ||
var totalWeight = this.getTotalNonIdleWeight(); | ||
var builder = new StackListProfileBuilder(totalWeight, totalWeight, 0); | ||
this.samples.forEach(function (node, i) { | ||
var stack = []; | ||
for (var n = node; n != null && n.frame !== Frame.root; n = n.parent) { | ||
stack.push(n.frame); | ||
} | ||
if (stack.length > 0) { | ||
builder.appendSampleWithWeight(stack, _this.weights[i]); | ||
} | ||
}); | ||
var ret = builder.build(); | ||
ret.name = this.name; | ||
ret.valueFormatter = this.valueFormatter; | ||
return ret; | ||
}; | ||
Profile.prototype.getProfileForCalleesOf = function (focalFrame) { | ||
@@ -328,0 +346,0 @@ focalFrame = Frame.getOrInsert(this.frames, focalFrame); |
{ | ||
"name": "@perfsee/flamechart", | ||
"version": "1.7.2", | ||
"version": "1.8.2", | ||
"description": "Web-based viewer for performance profiles", | ||
@@ -22,3 +22,3 @@ "sideEffect": false, | ||
}, | ||
"gitHead": "6ce865009641cd779c338a200638e4e124cac4d8" | ||
"gitHead": "fbfbf460b0eb09251ee954524671dd5f3dad0d39" | ||
} |
@@ -373,2 +373,22 @@ import { lastOf, KeyedSet } from './utils' | ||
getNonIdleProfile(): Profile { | ||
const totalWeight = this.getTotalNonIdleWeight() | ||
const builder = new StackListProfileBuilder(totalWeight, totalWeight, 0) | ||
this.samples.forEach((node, i) => { | ||
const stack: Frame[] = [] | ||
for (let n: CallTreeNode | null = node; n != null && n.frame !== Frame.root; n = n.parent) { | ||
stack.push(n.frame) | ||
} | ||
if (stack.length > 0) { | ||
builder.appendSampleWithWeight(stack, this.weights[i]) | ||
} | ||
}) | ||
const ret = builder.build() | ||
ret.name = this.name | ||
ret.valueFormatter = this.valueFormatter | ||
return ret | ||
} | ||
getProfileForCalleesOf(focalFrame: Frame): Profile { | ||
@@ -375,0 +395,0 @@ focalFrame = Frame.getOrInsert(this.frames, focalFrame) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1170045
18668