@parca/profile 0.12.33 → 0.12.36
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 +14 -0
- package/package.json +5 -5
- package/src/ProfileView.tsx +4 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.12.36](https://github.com/parca-dev/parca/compare/ui-v0.12.35...ui-v0.12.36) (2022-05-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## 0.12.35 (2022-05-05)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
14
|
+
## [0.12.34](https://github.com/parca-dev/parca/compare/ui-v0.12.33...ui-v0.12.34) (2022-05-03)
|
|
15
|
+
|
|
16
|
+
## 0.12.31 (2022-05-02)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @parca/profile
|
|
19
|
+
|
|
6
20
|
## [0.12.33](https://github.com/parca-dev/parca/compare/ui-v0.12.32...ui-v0.12.33) (2022-05-02)
|
|
7
21
|
|
|
8
22
|
## [0.12.27](https://github.com/parca-dev/parca/compare/ui-v0.12.26...ui-v0.12.27) (2022-04-29)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.36",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@parca/client": "^0.12.
|
|
7
|
-
"@parca/dynamicsize": "^0.12.
|
|
8
|
-
"@parca/parser": "^0.12.
|
|
6
|
+
"@parca/client": "^0.12.35",
|
|
7
|
+
"@parca/dynamicsize": "^0.12.35",
|
|
8
|
+
"@parca/parser": "^0.12.35",
|
|
9
9
|
"d3-scale": "^4.0.2"
|
|
10
10
|
},
|
|
11
11
|
"main": "src/index.tsx",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"access": "public",
|
|
20
20
|
"registry": "https://registry.npmjs.org/"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "bf00c1edfc430b108a4457cc6943e1e160dca89c"
|
|
23
23
|
}
|
package/src/ProfileView.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import {CalcWidth} from '@parca/dynamicsize';
|
|
|
3
3
|
import {parseParams} from '@parca/functions';
|
|
4
4
|
import {QueryServiceClient, QueryResponse, QueryRequest_ReportType} from '@parca/client';
|
|
5
5
|
import {RpcError} from '@protobuf-ts/runtime-rpc';
|
|
6
|
-
import {Button, Card, useGrpcMetadata} from '@parca/components';
|
|
6
|
+
import {Button, Card, Spinner, useGrpcMetadata, useParcaTheme} from '@parca/components';
|
|
7
7
|
import * as parca_query_v1alpha1_query_pb from '@parca/client/src/parca/query/v1alpha1/query_pb';
|
|
8
8
|
|
|
9
9
|
import ProfileIcicleGraph from './ProfileIcicleGraph';
|
|
@@ -47,6 +47,7 @@ export const ProfileView = ({
|
|
|
47
47
|
);
|
|
48
48
|
const [currentView, setCurrentView] = useState<string | undefined>(currentViewFromURL);
|
|
49
49
|
const metadata = useGrpcMetadata();
|
|
50
|
+
const {loader} = useParcaTheme();
|
|
50
51
|
|
|
51
52
|
useEffect(() => {
|
|
52
53
|
let showLoaderTimeout;
|
|
@@ -59,42 +60,10 @@ export const ProfileView = ({
|
|
|
59
60
|
setIsLoaderVisible(false);
|
|
60
61
|
}
|
|
61
62
|
return () => clearTimeout(showLoaderTimeout);
|
|
62
|
-
}, [isLoading
|
|
63
|
+
}, [isLoading]);
|
|
63
64
|
|
|
64
65
|
if (isLoaderVisible) {
|
|
65
|
-
return
|
|
66
|
-
<div
|
|
67
|
-
style={{
|
|
68
|
-
display: 'flex',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
alignItems: 'center',
|
|
71
|
-
height: 'inherit',
|
|
72
|
-
marginTop: 100,
|
|
73
|
-
}}
|
|
74
|
-
>
|
|
75
|
-
<svg
|
|
76
|
-
className="animate-spin -ml-1 mr-3 h-5 w-5"
|
|
77
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
-
fill="none"
|
|
79
|
-
viewBox="0 0 24 24"
|
|
80
|
-
>
|
|
81
|
-
<circle
|
|
82
|
-
className="opacity-25"
|
|
83
|
-
cx="12"
|
|
84
|
-
cy="12"
|
|
85
|
-
r="10"
|
|
86
|
-
stroke="currentColor"
|
|
87
|
-
strokeWidth="4"
|
|
88
|
-
></circle>
|
|
89
|
-
<path
|
|
90
|
-
className="opacity-75"
|
|
91
|
-
fill="currentColor"
|
|
92
|
-
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
93
|
-
></path>
|
|
94
|
-
</svg>
|
|
95
|
-
<span>Loading...</span>
|
|
96
|
-
</div>
|
|
97
|
-
);
|
|
66
|
+
return <>{loader}</>;
|
|
98
67
|
}
|
|
99
68
|
|
|
100
69
|
if (error !== null) {
|