@parca/profile 0.16.386 → 0.16.388

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.388](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.387...@parca/profile@0.16.388) (2024-06-13)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
10
+ ## 0.16.387 (2024-06-12)
11
+
12
+ **Note:** Version bump only for package @parca/profile
13
+
6
14
  ## [0.16.386](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.385...@parca/profile@0.16.386) (2024-06-06)
7
15
 
8
16
  **Note:** Version bump only for package @parca/profile
@@ -30,7 +30,13 @@ export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, se
30
30
  return;
31
31
  }
32
32
  dispatch(setAutoQuery('true'));
33
- let profileType = profileTypesData.types.find(type => type.name === 'parca_agent_cpu');
33
+ let profileType = profileTypesData.types.find(type => type.name === 'otel_profiling_agent_on_cpu' && type.delta);
34
+ if (profileType == null) {
35
+ profileType = profileTypesData.types.find(type => type.name === 'parca_agent_cpu' && type.delta);
36
+ }
37
+ if (profileType == null) {
38
+ profileType = profileTypesData.types.find(type => type.name === 'process_cpu' && type.delta);
39
+ }
34
40
  if (profileType == null) {
35
41
  profileType = profileTypesData.types[0];
36
42
  }
@@ -78,6 +78,10 @@ export const wellKnownProfiles = {
78
78
  name: 'CPU Samples',
79
79
  help: 'CPU profile samples observed by Parca Agent.',
80
80
  },
81
+ 'otel_profiling_agent_on_cpu:samples:count:cpu:nanoseconds:delta': {
82
+ name: 'On-CPU Samples',
83
+ help: 'On CPU profile samples observed by the Otel Profiling Agent.',
84
+ },
81
85
  };
82
86
  export function flexibleWellKnownProfileMatching(name) {
83
87
  const prefixExcludedName = name.split(':').slice(1).join(':');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.386",
3
+ "version": "0.16.388",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
@@ -71,5 +71,5 @@
71
71
  "access": "public",
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
- "gitHead": "a1ab45b0895ab2b3b5d67fdcf33123199dc93c5f"
74
+ "gitHead": "6554e0993ef13d7612e04c08a293ac8ed0fb9b52"
75
75
  }
@@ -48,7 +48,19 @@ export const useAutoQuerySelector = ({
48
48
  return;
49
49
  }
50
50
  dispatch(setAutoQuery('true'));
51
- let profileType = profileTypesData.types.find(type => type.name === 'parca_agent_cpu');
51
+ let profileType = profileTypesData.types.find(
52
+ type => type.name === 'otel_profiling_agent_on_cpu' && type.delta
53
+ );
54
+ if (profileType == null) {
55
+ profileType = profileTypesData.types.find(
56
+ type => type.name === 'parca_agent_cpu' && type.delta
57
+ );
58
+ }
59
+ if (profileType == null) {
60
+ profileType = profileTypesData.types.find(
61
+ type => type.name === 'process_cpu' && type.delta
62
+ );
63
+ }
52
64
  if (profileType == null) {
53
65
  profileType = profileTypesData.types[0];
54
66
  }
@@ -92,6 +92,10 @@ export const wellKnownProfiles: WellKnownProfiles = {
92
92
  name: 'CPU Samples',
93
93
  help: 'CPU profile samples observed by Parca Agent.',
94
94
  },
95
+ 'otel_profiling_agent_on_cpu:samples:count:cpu:nanoseconds:delta': {
96
+ name: 'On-CPU Samples',
97
+ help: 'On CPU profile samples observed by the Otel Profiling Agent.',
98
+ },
95
99
  };
96
100
 
97
101
  export function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | undefined {