@parca/profile 0.16.191 → 0.16.193

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,14 @@
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.193](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.192...@parca/profile@0.16.193) (2023-06-27)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.16.192](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.191...@parca/profile@0.16.192) (2023-06-26)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.191](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.190...@parca/profile@0.16.191) (2023-06-26)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -242,5 +242,5 @@ export const RawMetricsGraph = ({ data, from, to, profile, onSampleClick, onLabe
242
242
  /* eslint-disable-next-line @typescript-eslint/restrict-template-expressions */
243
243
  transform: `translate(${xScale(d)}, 0)`, children: [_jsx("line", { y2: 6, stroke: "currentColor" }), _jsx("text", { fill: "currentColor", dy: ".71em", y: 9, children: formatDate(d, formatForTimespan(from, to)) })] }, i))) }), _jsx("g", { className: "y axis", textAnchor: "end", fontSize: "10", fill: "none", children: yScale.ticks(3).map((d, i) => (_jsxs("g", { className: "tick",
244
244
  /* eslint-disable-next-line @typescript-eslint/restrict-template-expressions */
245
- transform: `translate(0, ${yScale(d)})`, children: [_jsx("line", { stroke: "currentColor", x2: -6 }), _jsx("text", { fill: "currentColor", x: -9, dy: '0.32em', children: valueFormatter(1000, sampleUnit, 1) })] }, i))) })] })] }) })] }));
245
+ transform: `translate(0, ${yScale(d)})`, children: [_jsx("line", { stroke: "currentColor", x2: -6 }), _jsx("text", { fill: "currentColor", x: -9, dy: '0.32em', children: valueFormatter(d, sampleUnit, 1) })] }, i))) })] })] }) })] }));
246
246
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FlamegraphNode } from '@parca/client';
3
3
  import { Location, Mapping, Function as ParcaFunction } from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
4
+ import { type ScaleFunction } from '@parca/utilities';
4
5
  export declare const RowHeight = 26;
5
6
  interface IcicleGraphNodesProps {
6
7
  data: FlamegraphNode[];
@@ -16,7 +17,7 @@ interface IcicleGraphNodesProps {
16
17
  curPath: string[];
17
18
  setCurPath: (path: string[]) => void;
18
19
  path: string[];
19
- xScale: (value: bigint) => number;
20
+ xScale: ScaleFunction;
20
21
  searchString?: string;
21
22
  compareMode: boolean;
22
23
  }
@@ -36,7 +37,7 @@ interface IcicleNodeProps {
36
37
  path: string[];
37
38
  total: bigint;
38
39
  setCurPath: (path: string[]) => void;
39
- xScale: (value: bigint) => number;
40
+ xScale: ScaleFunction;
40
41
  isRoot?: boolean;
41
42
  searchString?: string;
42
43
  compareMode: boolean;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.191",
3
+ "version": "0.16.193",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.76",
7
- "@parca/components": "^0.16.152",
7
+ "@parca/components": "^0.16.153",
8
8
  "@parca/dynamicsize": "^0.16.54",
9
9
  "@parca/hooks": "^0.0.11",
10
10
  "@parca/parser": "^0.16.55",
11
- "@parca/store": "^0.16.82",
12
- "@parca/utilities": "^0.0.12",
11
+ "@parca/store": "^0.16.83",
12
+ "@parca/utilities": "^0.0.13",
13
13
  "@tanstack/react-query": "^4.0.5",
14
14
  "@types/react-beautiful-dnd": "^13.1.3",
15
15
  "d3": "7.8.5",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org/"
48
48
  },
49
- "gitHead": "16d74f0c7e3059f569df049d7e1ec59072691e21"
49
+ "gitHead": "a807f29ac0f3ace60c66a11ed8691a916ec98111"
50
50
  }
@@ -474,7 +474,7 @@ export const RawMetricsGraph = ({
474
474
  >
475
475
  <line stroke="currentColor" x2={-6} />
476
476
  <text fill="currentColor" x={-9} dy={'0.32em'}>
477
- {valueFormatter(1000, sampleUnit, 1)}
477
+ {valueFormatter(d, sampleUnit, 1)}
478
478
  </text>
479
479
  </g>
480
480
  ))}
@@ -23,7 +23,7 @@ import {
23
23
  } from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
24
24
  import {useKeyDown} from '@parca/components';
25
25
  import {selectBinaries, setHoveringNode, useAppDispatch, useAppSelector} from '@parca/store';
26
- import {isSearchMatch, scaleLinear} from '@parca/utilities';
26
+ import {isSearchMatch, scaleLinear, type ScaleFunction} from '@parca/utilities';
27
27
 
28
28
  import useNodeColor from './useNodeColor';
29
29
  import {nodeLabel} from './utils';
@@ -44,7 +44,7 @@ interface IcicleGraphNodesProps {
44
44
  curPath: string[];
45
45
  setCurPath: (path: string[]) => void;
46
46
  path: string[];
47
- xScale: (value: bigint) => number;
47
+ xScale: ScaleFunction;
48
48
  searchString?: string;
49
49
  compareMode: boolean;
50
50
  }
@@ -126,7 +126,7 @@ interface IcicleNodeProps {
126
126
  path: string[];
127
127
  total: bigint;
128
128
  setCurPath: (path: string[]) => void;
129
- xScale: (value: bigint) => number;
129
+ xScale: ScaleFunction;
130
130
  isRoot?: boolean;
131
131
  searchString?: string;
132
132
  compareMode: boolean;