Amir Ayupov
6ee5ff95ab
[BOLT] Add profile density computation
...
Reuse the definition of profile density from llvm-profgen (#92144 ):
- the density is computed in perf2bolt using raw samples (perf.data or
pre-aggregated data),
- function density is the ratio of dynamically executed function bytes
to the static function size in bytes,
- profile density:
- functions are sorted by density in decreasing order, accumulating
their respective sample counts,
- profile density is the smallest density covering 99% of total sample
count.
In other words, BOLT binary profile density is the minimum amount of
profile information per function (excluding functions in tail 1% sample
count) which is sufficient to optimize the binary well.
The density threshold of 60 was determined through experiments with
large binaries by reducing the sample count and checking resulting
profile density and performance. The threshold is conservative.
perf2bolt would print the warning if the density is below the threshold
and suggest to increase the sampling duration and/or frequency to reach
a given density, e.g.:
```
BOLT-WARNING: BOLT is estimated to optimize better with 2.8x more samples.
```
Test Plan: updated pre-aggregated-perf.test
Reviewers: maksfb, wlei-llvm, rafaelauler, ayermolo, dcci, WenleiHe
Reviewed By: WenleiHe, wlei-llvm
Pull Request: https://github.com/llvm/llvm-project/pull/101094
2024-10-24 18:30:59 -07:00
..
2024-08-07 16:25:46 +04:00
2024-05-31 15:14:37 -07:00
2024-07-16 22:14:43 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-17 16:45:34 -07:00
2024-08-07 16:25:46 +04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-10-08 19:07:43 -04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-07-30 16:58:01 -07:00
2024-07-30 16:58:01 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2023-11-28 22:40:53 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-07-10 11:35:40 -07:00
2024-05-31 15:14:37 -07:00
2024-07-10 11:35:40 -07:00
2024-07-10 11:35:40 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-22 13:41:27 -07:00
2024-01-25 15:00:52 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-07-31 11:35:38 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-25 07:48:57 -07:00
2024-03-22 13:48:49 -07:00
2024-03-18 15:28:01 -07:00
2024-05-25 07:48:57 -07:00
2024-03-18 15:28:01 -07:00
2024-06-05 09:57:11 -07:00
2024-05-25 07:48:57 -07:00
2024-03-18 15:28:01 -07:00
2023-11-28 22:40:53 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-15 13:52:45 -07:00
2024-03-15 13:52:45 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:16:21 -07:00
2024-07-26 18:58:25 -07:00
2024-03-15 13:52:45 -07:00
2024-08-08 16:41:51 -07:00
2024-03-15 13:52:45 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-03-15 13:52:45 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-02-14 15:43:39 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-03-22 13:41:27 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-02-14 11:23:57 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-18 15:28:01 -07:00
2024-08-08 16:41:51 -07:00
2024-01-25 15:00:52 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-03-15 13:52:45 -07:00
2024-01-24 15:34:29 -08:00
2024-05-31 15:14:37 -07:00
2023-11-09 09:55:49 -08:00
2024-05-31 15:14:37 -07:00
2024-08-07 15:57:25 +08:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-08-23 08:20:11 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-06-29 21:19:00 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-09-23 18:22:43 +08:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-07-09 20:02:01 -07:00
2024-08-21 00:35:07 -04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-23 08:20:11 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 17:26:58 -07:00
2024-06-27 17:26:58 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-09 20:02:01 -07:00
2024-07-18 20:57:05 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 19:26:11 -07:00
2024-08-12 17:18:17 -07:00
2024-03-04 17:24:16 -08:00
2024-08-12 17:18:17 -07:00
2024-03-22 15:29:26 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 17:50:58 -07:00
2024-09-23 15:47:19 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-07-19 14:00:28 -07:00
2024-07-15 21:40:50 +02:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-03 11:39:18 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-02-01 12:08:41 -08:00
2024-06-11 19:21:11 +01:00
2024-10-24 18:30:59 -07:00
2024-09-25 23:44:06 +02:00
2024-05-13 18:02:38 -07:00
2024-09-12 20:51:35 -07:00
2024-09-12 20:51:35 -07:00
2024-08-12 17:18:17 -07:00
2024-07-01 14:58:45 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-05 15:18:49 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 17:26:58 -07:00
2024-05-31 15:14:37 -07:00
2024-08-07 20:52:19 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-18 13:41:57 +02:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-24 07:16:39 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-19 20:15:31 -07:00
2024-04-11 21:15:04 +02:00
2024-09-03 11:27:57 -07:00
2024-05-31 15:14:37 -07:00