@parca/profile 0.16.462 → 0.16.463

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.463](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.462...@parca/profile@0.16.463) (2025-01-20)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.16.462](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.461...@parca/profile@0.16.462) (2025-01-16)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MetricsGraphStrips/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAGvC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AACnC,OAAO,EAAY,SAAS,EAAC,MAAM,aAAa,CAAC;AAEjD,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACpB,iBAAiB,CAAC,EAAE;QAClB,MAAM,EAAE,QAAQ,CAAC;QACjB,MAAM,EAAE,SAAS,CAAC;KACnB,CAAC;IACF,mBAAmB,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,cAAe,QAAQ,KAAG,MAmBtD,CAAC;AAMF,eAAO,MAAM,kBAAkB,mEAM5B,KAAK,KAAG,GAAG,CAAC,OAmEd,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/MetricsGraphStrips/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAGvC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AACnC,OAAO,EAAY,SAAS,EAAC,MAAM,aAAa,CAAC;AAEjD,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACpB,iBAAiB,CAAC,EAAE;QAClB,MAAM,EAAE,QAAQ,CAAC;QACjB,MAAM,EAAE,SAAS,CAAC;KACnB,CAAC;IACF,mBAAmB,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,gBAAgB,cAAe,QAAQ,KAAG,MAmBtD,CAAC;AAMF,eAAO,MAAM,kBAAkB,mEAM5B,KAAK,KAAG,GAAG,CAAC,OAmEd,CAAC"}
@@ -14,6 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  import { useMemo, useState } from 'react';
15
15
  import { Icon } from '@iconify/react';
16
16
  import * as d3 from 'd3';
17
+ import isEqual from 'fast-deep-equal';
17
18
  import { TimelineGuide } from '../TimelineGuide';
18
19
  import { AreaGraph } from './AreaGraph';
19
20
  export const labelSetToString = (labelSet) => {
@@ -63,7 +64,7 @@ export const MetricsGraphStrips = ({ cpus, data, selectedTimeframe, onSelectedTi
63
64
  newCollapsedIndices.push(i);
64
65
  }
65
66
  setCollapsedIndices(newCollapsedIndices);
66
- }, children: [_jsx(Icon, { icon: isCollapsed ? 'bxs:right-arrow' : 'bxs:down-arrow' }), labelStr] }), !isCollapsed ? (_jsx(AreaGraph, { data: data[i], height: 56, width: width ?? 1468, fill: color(labelStr), selectionBounds: cpu === selectedTimeframe?.labels ? selectedTimeframe.bounds : undefined, setSelectionBounds: bounds => {
67
+ }, children: [_jsx(Icon, { icon: isCollapsed ? 'bxs:right-arrow' : 'bxs:down-arrow' }), labelStr] }), !isCollapsed ? (_jsx(AreaGraph, { data: data[i], height: 56, width: width ?? 1468, fill: color(labelStr), selectionBounds: isEqual(cpu, selectedTimeframe?.labels) ? selectedTimeframe?.bounds : undefined, setSelectionBounds: bounds => {
67
68
  onSelectedTimeframe(cpu, bounds);
68
69
  } })) : null] }, labelStr));
69
70
  })] }));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.462",
3
+ "version": "0.16.463",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
7
7
  "@iconify/react": "^4.0.0",
8
8
  "@parca/client": "0.16.126",
9
- "@parca/components": "0.16.316",
9
+ "@parca/components": "0.16.317",
10
10
  "@parca/dynamicsize": "0.16.65",
11
11
  "@parca/hooks": "0.0.77",
12
12
  "@parca/icons": "0.16.71",
@@ -32,6 +32,7 @@
32
32
  "d3-scale-chromatic": "^3.1.0",
33
33
  "d3-selection": "3.0.0",
34
34
  "d3-shape": "^3.2.0",
35
+ "fast-deep-equal": "^3.1.3",
35
36
  "framer-motion": "6.5.1",
36
37
  "graphviz-wasm": "3.0.2",
37
38
  "lodash.throttle": "^4.1.1",
@@ -74,5 +75,5 @@
74
75
  "access": "public",
75
76
  "registry": "https://registry.npmjs.org/"
76
77
  },
77
- "gitHead": "9aed6d592e6b5aba8ee8b8bc8e2ef97bf218f57e"
78
+ "gitHead": "604f5ebdaaf338b0a5fa63e13ff0a8b112354ebf"
78
79
  }
@@ -15,6 +15,7 @@ import {useMemo, useState} from 'react';
15
15
 
16
16
  import {Icon} from '@iconify/react';
17
17
  import * as d3 from 'd3';
18
+ import isEqual from 'fast-deep-equal';
18
19
 
19
20
  import {LabelSet} from '@parca/client';
20
21
 
@@ -119,7 +120,7 @@ export const MetricsGraphStrips = ({
119
120
  width={width ?? 1468}
120
121
  fill={color(labelStr) as string}
121
122
  selectionBounds={
122
- cpu === selectedTimeframe?.labels ? selectedTimeframe.bounds : undefined
123
+ isEqual(cpu, selectedTimeframe?.labels) ? selectedTimeframe?.bounds : undefined
123
124
  }
124
125
  setSelectionBounds={bounds => {
125
126
  onSelectedTimeframe(cpu, bounds);