@parca/profile 0.16.180 → 0.16.182
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 +8 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -44
- package/dist/useGrpcQuery/index.d.ts +2 -2
- package/dist/useGrpcQuery/index.js +1 -1
- package/package.json +3 -3
- package/src/index.tsx +2 -5
- package/src/useGrpcQuery/index.ts +2 -2
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.182](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.181...@parca/profile@0.16.182) (2023-06-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.181](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.180...@parca/profile@0.16.181) (2023-06-12)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.16.180 (2023-06-10)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { QueryServiceClient } from '@parca/client';
|
|
3
2
|
import type { Props as CallgraphProps } from '@parca/profile/src/Callgraph';
|
|
4
3
|
import ProfileExplorer from './ProfileExplorer';
|
|
@@ -11,9 +10,9 @@ export * from './ProfileView';
|
|
|
11
10
|
export * from './ProfileViewWithData';
|
|
12
11
|
export * from './utils';
|
|
13
12
|
export * from './ProfileTypeSelector';
|
|
13
|
+
export { default as Callgraph } from './Callgraph';
|
|
14
14
|
export type { CallgraphProps };
|
|
15
|
-
|
|
16
|
-
export { Callgraph, ProfileExplorer, ProfileTypeSelector };
|
|
15
|
+
export { ProfileExplorer, ProfileTypeSelector };
|
|
17
16
|
interface GrafanaParcaDataPayload {
|
|
18
17
|
flamegraphData: FlamegraphData;
|
|
19
18
|
topTableData: TopTableData;
|
package/dist/index.js
CHANGED
|
@@ -10,43 +10,6 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
import { lazy } from 'react';
|
|
50
13
|
import ProfileExplorer from './ProfileExplorer';
|
|
51
14
|
import ProfileTypeSelector from './ProfileTypeSelector';
|
|
52
15
|
export * from './ProfileIcicleGraph/IcicleGraph';
|
|
@@ -56,10 +19,5 @@ export * from './ProfileView';
|
|
|
56
19
|
export * from './ProfileViewWithData';
|
|
57
20
|
export * from './utils';
|
|
58
21
|
export * from './ProfileTypeSelector';
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
case 0: return [4 /*yield*/, import('@parca/profile/src/Callgraph')];
|
|
62
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
63
|
-
}
|
|
64
|
-
}); }); });
|
|
65
|
-
export { Callgraph, ProfileExplorer, ProfileTypeSelector };
|
|
22
|
+
export { default as Callgraph } from './Callgraph';
|
|
23
|
+
export { ProfileExplorer, ProfileTypeSelector };
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
import { useQuery } from 'react-query';
|
|
49
|
+
import { useQuery } from '@tanstack/react-query';
|
|
50
50
|
var useGrpcQuery = function (_a) {
|
|
51
51
|
var key = _a.key, queryFn = _a.queryFn, _b = _a.options, _c = _b === void 0 ? {} : _b, _d = _c.enabled, enabled = _d === void 0 ? true : _d, staleTime = _c.staleTime;
|
|
52
52
|
return useQuery(key, function () { return __awaiter(void 0, void 0, void 0, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.182",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.73",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"@parca/parser": "^0.16.55",
|
|
11
11
|
"@parca/store": "^0.16.76",
|
|
12
12
|
"@parca/utilities": "^0.0.7",
|
|
13
|
+
"@tanstack/react-query": "^4.0.5",
|
|
13
14
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
14
15
|
"d3": "7.8.5",
|
|
15
16
|
"d3-scale": "^4.0.2",
|
|
@@ -20,7 +21,6 @@
|
|
|
20
21
|
"react-flame-graph": "^1.4.0",
|
|
21
22
|
"react-inlinesvg": "^3.0.2",
|
|
22
23
|
"react-map-interaction": "^2.1.0",
|
|
23
|
-
"react-query": "^3.39.2",
|
|
24
24
|
"react-textarea-autosize": "^8.4.0",
|
|
25
25
|
"with-alpha-hex": "^1.0.6"
|
|
26
26
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public",
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "7290cf8f40f47356cebdf72ce1003b5a54e8b29d"
|
|
50
50
|
}
|
package/src/index.tsx
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {lazy} from 'react';
|
|
15
|
-
|
|
16
14
|
import {QueryServiceClient} from '@parca/client';
|
|
17
15
|
import type {Props as CallgraphProps} from '@parca/profile/src/Callgraph';
|
|
18
16
|
|
|
@@ -27,12 +25,11 @@ export * from './ProfileView';
|
|
|
27
25
|
export * from './ProfileViewWithData';
|
|
28
26
|
export * from './utils';
|
|
29
27
|
export * from './ProfileTypeSelector';
|
|
28
|
+
export {default as Callgraph} from './Callgraph';
|
|
30
29
|
|
|
31
30
|
export type {CallgraphProps};
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export {Callgraph, ProfileExplorer, ProfileTypeSelector};
|
|
32
|
+
export {ProfileExplorer, ProfileTypeSelector};
|
|
36
33
|
|
|
37
34
|
// Leaving this in here due to lack of a better place to put it.
|
|
38
35
|
interface GrafanaParcaDataPayload {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import {useQuery, type UseQueryResult} from '@tanstack/react-query';
|
|
15
15
|
|
|
16
16
|
interface Props<IRes> {
|
|
17
|
-
key:
|
|
17
|
+
key: unknown[];
|
|
18
18
|
queryFn: () => Promise<IRes>;
|
|
19
19
|
options?: {
|
|
20
20
|
enabled?: boolean | undefined;
|