@parca/profile 0.16.326 → 0.16.328
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.328](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.327...@parca/profile@0.16.328) (2024-01-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## 0.16.327 (2023-12-14)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## [0.16.326](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.325...@parca/profile@0.16.326) (2023-12-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -147,7 +147,7 @@ const MatchersInput = ({ queryClient, setMatchersString, runQuery, currentQuery,
|
|
|
147
147
|
setFocusedInput(false);
|
|
148
148
|
};
|
|
149
149
|
const profileSelected = currentQuery.profileName() === '';
|
|
150
|
-
return (_jsxs("div", { className: "w-full min-w-[300px] flex-1 font-mono", children: [_jsx(TextareaAutosize, { ref: inputRef, className: cx('block h-[38px] w-full flex-1 rounded-md border bg-white px-2 py-2 text-sm shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-900', profileSelected && 'cursor-not-allowed'), placeholder: profileSelected
|
|
150
|
+
return (_jsxs("div", { className: "w-full min-w-[300px] flex-1 font-mono relative", children: [_jsx(TextareaAutosize, { ref: inputRef, className: cx('block h-[38px] w-full flex-1 rounded-md border bg-white px-2 py-2 text-sm shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:border-gray-600 dark:bg-gray-900', profileSelected && 'cursor-not-allowed'), placeholder: profileSelected
|
|
151
151
|
? 'Select a profile first to enter a filter...'
|
|
152
152
|
: 'filter profiles... eg. node="test"', onChange: onChange, value: value, onBlur: unfocus, onFocus: focus, disabled: profileSelected, title: profileSelected
|
|
153
153
|
? 'Select a profile first to enter a filter...'
|
|
@@ -156,14 +156,17 @@ export const RawMetricsGraph = ({ data, from, to, profile, onSampleClick, addLab
|
|
|
156
156
|
setRelPos(-1);
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
else {
|
|
165
|
-
setTimeRange(DateTimeRange.fromAbsoluteDates(firstTime, secondTime));
|
|
159
|
+
let startPos = relPos;
|
|
160
|
+
let endPos = pos[0];
|
|
161
|
+
if (startPos > endPos) {
|
|
162
|
+
startPos = pos[0];
|
|
163
|
+
endPos = relPos;
|
|
166
164
|
}
|
|
165
|
+
const startCorrection = 10;
|
|
166
|
+
const endCorrection = 30;
|
|
167
|
+
const firstTime = xScale.invert(startPos - startCorrection).valueOf();
|
|
168
|
+
const secondTime = xScale.invert(endPos - endCorrection).valueOf();
|
|
169
|
+
setTimeRange(DateTimeRange.fromAbsoluteDates(firstTime, secondTime));
|
|
167
170
|
setRelPos(-1);
|
|
168
171
|
e.stopPropagation();
|
|
169
172
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.328",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.100",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.240",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.60",
|
|
9
9
|
"@parca/hooks": "^0.0.38",
|
|
10
10
|
"@parca/parser": "^0.16.68",
|
|
11
|
-
"@parca/store": "^0.16.
|
|
12
|
-
"@parca/utilities": "^0.0.
|
|
11
|
+
"@parca/store": "^0.16.121",
|
|
12
|
+
"@parca/utilities": "^0.0.49",
|
|
13
13
|
"@tanstack/react-query": "^4.0.5",
|
|
14
14
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
15
15
|
"apache-arrow": "^12.0.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d529dd87e642c1c67054ad2c68912d090e013321"
|
|
54
54
|
}
|
|
@@ -205,7 +205,7 @@ const MatchersInput = ({
|
|
|
205
205
|
const profileSelected = currentQuery.profileName() === '';
|
|
206
206
|
|
|
207
207
|
return (
|
|
208
|
-
<div className="w-full min-w-[300px] flex-1 font-mono">
|
|
208
|
+
<div className="w-full min-w-[300px] flex-1 font-mono relative">
|
|
209
209
|
<TextareaAutosize
|
|
210
210
|
ref={inputRef}
|
|
211
211
|
className={cx(
|
|
@@ -282,14 +282,22 @@ export const RawMetricsGraph = ({
|
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
let startPos = relPos;
|
|
286
|
+
let endPos = pos[0];
|
|
287
287
|
|
|
288
|
-
if (
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
setTimeRange(DateTimeRange.fromAbsoluteDates(firstTime, secondTime));
|
|
288
|
+
if (startPos > endPos) {
|
|
289
|
+
startPos = pos[0];
|
|
290
|
+
endPos = relPos;
|
|
292
291
|
}
|
|
292
|
+
|
|
293
|
+
const startCorrection = 10;
|
|
294
|
+
const endCorrection = 30;
|
|
295
|
+
|
|
296
|
+
const firstTime = xScale.invert(startPos - startCorrection).valueOf();
|
|
297
|
+
const secondTime = xScale.invert(endPos - endCorrection).valueOf();
|
|
298
|
+
|
|
299
|
+
setTimeRange(DateTimeRange.fromAbsoluteDates(firstTime, secondTime));
|
|
300
|
+
|
|
293
301
|
setRelPos(-1);
|
|
294
302
|
|
|
295
303
|
e.stopPropagation();
|