We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d12a3a0 commit 1170042Copy full SHA for 1170042
src/profile-logic/merge-compare.js
@@ -90,6 +90,18 @@ export function mergeProfilesForDiffing(
90
}
91
92
const resultProfile = getEmptyProfile();
93
+
94
+ // Copy over identical values for the ProfileMeta.
95
+ for (const [key, value] of Object.entries(profiles[0].meta)) {
96
+ if (profiles.every((profile) => profile.meta[key] === value)) {
97
+ resultProfile.meta[key] = value;
98
+ }
99
100
+ // Ensure it has a copy of the marker schema and categories, even though these could
101
+ // be different between the two profiles.
102
+ resultProfile.meta.markerSchema = profiles[0].meta.markerSchema;
103
+ resultProfile.meta.categories = profiles[0].meta.categories;
104
105
resultProfile.meta.interval = Math.min(
106
...profiles.map((profile) => profile.meta.interval)
107
);
0 commit comments