@parca/profile 0.16.370 → 0.16.372

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.372](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.371...@parca/profile@0.16.372) (2024-05-16)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## [0.16.371](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.370...@parca/profile@0.16.371) (2024-05-16)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.370](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.369...@parca/profile@0.16.370) (2024-05-14)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -117,6 +117,11 @@ export class ProfileDiffSource {
117
117
  return (_jsx(_Fragment, { children: _jsx("p", { children: "Browse the comparison" }) }));
118
118
  }
119
119
  toString() {
120
+ const aDesc = this.a.toString();
121
+ const bDesc = this.b.toString();
122
+ if (aDesc === bDesc) {
123
+ return 'profile comparison';
124
+ }
120
125
  return `${this.a.toString()} compared with ${this.b.toString()}`;
121
126
  }
122
127
  }
@@ -164,6 +169,14 @@ export class MergedProfileSource {
164
169
  .map((m) => `${m.key}=${m.value}`);
165
170
  }
166
171
  toString(timezone) {
167
- return `merged profiles of query "${this.query.toString()}" from ${formatDate(this.mergeFrom, timeFormat(timezone), timezone)} to ${formatDate(this.mergeTo, timeFormat(timezone), timezone)}`;
172
+ let queryPart = '';
173
+ if (this.query.toString()?.length > 0) {
174
+ queryPart = ` of query "${this.query.toString()}"`;
175
+ }
176
+ let timePart = '';
177
+ if (this.mergeFrom !== 0) {
178
+ timePart = ` from ${formatDate(this.mergeFrom, timeFormat(timezone), timezone)} to ${formatDate(this.mergeTo, timeFormat(timezone), timezone)}`;
179
+ }
180
+ return `merged profiles${queryPart}${timePart}`;
168
181
  }
169
182
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.370",
3
+ "version": "0.16.372",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
7
7
  "@iconify/react": "^4.0.0",
8
- "@parca/client": "^0.16.113",
9
- "@parca/components": "^0.16.275",
10
- "@parca/dynamicsize": "^0.16.64",
11
- "@parca/hooks": "^0.0.55",
12
- "@parca/icons": "^0.16.68",
13
- "@parca/parser": "^0.16.73",
14
- "@parca/store": "^0.16.144",
15
- "@parca/utilities": "^0.0.72",
8
+ "@parca/client": "^0.16.114",
9
+ "@parca/components": "^0.16.276",
10
+ "@parca/dynamicsize": "^0.16.65",
11
+ "@parca/hooks": "^0.0.56",
12
+ "@parca/icons": "^0.16.69",
13
+ "@parca/parser": "^0.16.74",
14
+ "@parca/store": "^0.16.145",
15
+ "@parca/utilities": "^0.0.73",
16
16
  "@popperjs/core": "^2.11.8",
17
17
  "@protobuf-ts/runtime-rpc": "^2.5.0",
18
18
  "@tanstack/react-query": "^4.0.5",
@@ -71,5 +71,5 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "6fb2ee469c00ba81c6b1317771127fdf5806dced"
74
+ "gitHead": "d0d5e43082aac764eecbe6e107b2d2f029132ff2"
75
75
  }