summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZizhi Wo <wozizhi@huawei.com>2025-05-06 10:09:29 +0800
committerJens Axboe <axboe@kernel.dk>2025-05-13 12:08:27 -0600
commit3660cd4228d9330b618e2700491891f08824011d (patch)
treee169a355dd4259eedb233e3fbaceadea3376f1a2 /tools/perf/scripts/python/export-to-postgresql.py
parentfd6c08b26460436ec0f53e125f8ded98738806f1 (diff)
blk-throttle: Refactor tg_dispatch_time by extracting tg_dispatch_bps/iops_time
tg_dispatch_time() contained both bps and iops throttling logic. We now split its internal logic into tg_dispatch_bps/iops_time() to improve code consistency for future separation of the bps and iops queues. Besides, merge time_before() from caller into throtl_extend_slice() to make code cleaner. Signed-off-by: Zizhi Wo <wozizhi@huawei.com> Reviewed-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Zizhi Wo <wozizhi@huaweicloud.com> Link: https://lore.kernel.org/r/20250506020935.655574-3-wozizhi@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions