To ensure accurate and meaningful profile comparisons, the following conditions must be met:
- Same Events: The profiles being compared should have collected the same events. This ensures that the comparison is performed on relevant and comparable data.
-
Same Profile Duration (if specified): If the duration (
-d) option is specified, the profiles being compared should have the same duration. This ensures consistency in the time span covered by the profiles. - Not a System Wide Profile: System-wide profiles cannot be compared directly. Therefore, only individual process or thread-level profiles are eligible for comparison.
-
Same Profile Data Limit (if used): If the
--limit-sizeor--limit-dataoption is used during profiling, the profiles being compared should have the same data limit set. This ensures consistency in the size of profile data collected. -
Same Inline Function Profiling (
--inline): If the--inlineoption is used to profile inline functions, the profiles being compared should have used the same inline function profiling setting. This ensures consistent handling of inline functions during the comparison.