@parca/profile 0.16.173 → 0.16.175
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.175](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.174...@parca/profile@0.16.175) (2023-06-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.174](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.173...@parca/profile@0.16.174) (2023-06-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.16.173 (2023-06-01)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -135,6 +135,10 @@ export var RawMetricsGraph = function (_a) {
|
|
|
135
135
|
};
|
|
136
136
|
var highlighted = getClosest();
|
|
137
137
|
var onMouseDown = function (e) {
|
|
138
|
+
// if shift is down, disable mouse behavior
|
|
139
|
+
if (isShiftDown) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
138
142
|
// only left mouse button
|
|
139
143
|
if (e.button !== 0) {
|
|
140
144
|
return;
|
|
@@ -157,6 +161,9 @@ export var RawMetricsGraph = function (_a) {
|
|
|
157
161
|
}
|
|
158
162
|
};
|
|
159
163
|
var onMouseUp = function (e) {
|
|
164
|
+
if (isShiftDown) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
160
167
|
setDragging(false);
|
|
161
168
|
if (relPos === -1) {
|
|
162
169
|
// MouseDown happened outside of this element.
|
|
@@ -183,15 +190,17 @@ export var RawMetricsGraph = function (_a) {
|
|
|
183
190
|
};
|
|
184
191
|
var throttledSetPos = throttle(setPos, 20);
|
|
185
192
|
var onMouseMove = function (e) {
|
|
193
|
+
// do not update position if shift is down because this means the user is locking the tooltip
|
|
194
|
+
if (isShiftDown) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
186
197
|
// X/Y coordinate array relative to svg
|
|
187
198
|
var rel = pointer(e);
|
|
188
199
|
var xCoordinate = rel[0];
|
|
189
200
|
var xCoordinateWithoutMargin = xCoordinate - margin;
|
|
190
201
|
var yCoordinate = rel[1];
|
|
191
202
|
var yCoordinateWithoutMargin = yCoordinate - margin;
|
|
192
|
-
|
|
193
|
-
throttledSetPos([xCoordinateWithoutMargin, yCoordinateWithoutMargin]);
|
|
194
|
-
}
|
|
203
|
+
throttledSetPos([xCoordinateWithoutMargin, yCoordinateWithoutMargin]);
|
|
195
204
|
};
|
|
196
205
|
var findSelectedProfile = function () {
|
|
197
206
|
if (profile == null) {
|
|
@@ -33,13 +33,11 @@ export var wellKnownProfiles = {
|
|
|
33
33
|
name: 'Block Contention Time Total',
|
|
34
34
|
help: 'Time delayed stack traces caused by blocking on synchronization primitives.',
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
'fgprof:samples:count::': {
|
|
36
|
+
'fgprof:samples:count:wallclock:nanoseconds:delta': {
|
|
38
37
|
name: 'Fgprof Samples Total',
|
|
39
38
|
help: 'CPU profile samples observed regardless of their current On/Off CPU scheduling status',
|
|
40
39
|
},
|
|
41
|
-
|
|
42
|
-
'fgprof:time:nanoseconds::': {
|
|
40
|
+
'fgprof:time:nanoseconds:wallclock:nanoseconds:delta': {
|
|
43
41
|
name: 'Fgprof Samples Time Total',
|
|
44
42
|
help: 'CPU profile measured regardless of their current On/Off CPU scheduling status in nanoseconds',
|
|
45
43
|
},
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.175",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.73",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.139",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.54",
|
|
9
9
|
"@parca/hooks": "^0.0.2",
|
|
10
10
|
"@parca/parser": "^0.16.55",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5d0edf2e2029cad81ad4a69a19e1bd6fbc1b1be8"
|
|
50
50
|
}
|
|
@@ -221,6 +221,11 @@ export const RawMetricsGraph = ({
|
|
|
221
221
|
const highlighted = getClosest();
|
|
222
222
|
|
|
223
223
|
const onMouseDown = (e: React.MouseEvent<SVGSVGElement | HTMLDivElement, MouseEvent>): void => {
|
|
224
|
+
// if shift is down, disable mouse behavior
|
|
225
|
+
if (isShiftDown) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
|
|
224
229
|
// only left mouse button
|
|
225
230
|
if (e.button !== 0) {
|
|
226
231
|
return;
|
|
@@ -251,6 +256,10 @@ export const RawMetricsGraph = ({
|
|
|
251
256
|
};
|
|
252
257
|
|
|
253
258
|
const onMouseUp = (e: React.MouseEvent<SVGSVGElement | HTMLDivElement, MouseEvent>): void => {
|
|
259
|
+
if (isShiftDown) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
|
|
254
263
|
setDragging(false);
|
|
255
264
|
|
|
256
265
|
if (relPos === -1) {
|
|
@@ -283,6 +292,11 @@ export const RawMetricsGraph = ({
|
|
|
283
292
|
const throttledSetPos = throttle(setPos, 20);
|
|
284
293
|
|
|
285
294
|
const onMouseMove = (e: React.MouseEvent<SVGSVGElement | HTMLDivElement, MouseEvent>): void => {
|
|
295
|
+
// do not update position if shift is down because this means the user is locking the tooltip
|
|
296
|
+
if (isShiftDown) {
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
|
|
286
300
|
// X/Y coordinate array relative to svg
|
|
287
301
|
const rel = pointer(e);
|
|
288
302
|
|
|
@@ -291,9 +305,7 @@ export const RawMetricsGraph = ({
|
|
|
291
305
|
const yCoordinate = rel[1];
|
|
292
306
|
const yCoordinateWithoutMargin = yCoordinate - margin;
|
|
293
307
|
|
|
294
|
-
|
|
295
|
-
throttledSetPos([xCoordinateWithoutMargin, yCoordinateWithoutMargin]);
|
|
296
|
-
}
|
|
308
|
+
throttledSetPos([xCoordinateWithoutMargin, yCoordinateWithoutMargin]);
|
|
297
309
|
};
|
|
298
310
|
|
|
299
311
|
const findSelectedProfile = (): HighlightedSeries | null => {
|
|
@@ -36,13 +36,11 @@ export const wellKnownProfiles: WellKnownProfiles = {
|
|
|
36
36
|
name: 'Block Contention Time Total',
|
|
37
37
|
help: 'Time delayed stack traces caused by blocking on synchronization primitives.',
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
'fgprof:samples:count::': {
|
|
39
|
+
'fgprof:samples:count:wallclock:nanoseconds:delta': {
|
|
41
40
|
name: 'Fgprof Samples Total',
|
|
42
41
|
help: 'CPU profile samples observed regardless of their current On/Off CPU scheduling status',
|
|
43
42
|
},
|
|
44
|
-
|
|
45
|
-
'fgprof:time:nanoseconds::': {
|
|
43
|
+
'fgprof:time:nanoseconds:wallclock:nanoseconds:delta': {
|
|
46
44
|
name: 'Fgprof Samples Time Total',
|
|
47
45
|
help: 'CPU profile measured regardless of their current On/Off CPU scheduling status in nanoseconds',
|
|
48
46
|
},
|