diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /scripts/lib/build_perf/__init__.py | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/build_perf/__init__.py')
| -rw-r--r-- | scripts/lib/build_perf/__init__.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lib/build_perf/__init__.py b/scripts/lib/build_perf/__init__.py deleted file mode 100644 index dcbb78042d..0000000000 --- a/scripts/lib/build_perf/__init__.py +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Copyright (c) 2017, Intel Corporation. | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 5 | # | ||
| 6 | """Build performance test library functions""" | ||
| 7 | |||
| 8 | def print_table(rows, row_fmt=None): | ||
| 9 | """Print data table""" | ||
| 10 | if not rows: | ||
| 11 | return | ||
| 12 | if not row_fmt: | ||
| 13 | row_fmt = ['{:{wid}} '] * len(rows[0]) | ||
| 14 | |||
| 15 | # Go through the data to get maximum cell widths | ||
| 16 | num_cols = len(row_fmt) | ||
| 17 | col_widths = [0] * num_cols | ||
| 18 | for row in rows: | ||
| 19 | for i, val in enumerate(row): | ||
| 20 | col_widths[i] = max(col_widths[i], len(str(val))) | ||
| 21 | |||
| 22 | for row in rows: | ||
| 23 | print(*[row_fmt[i].format(col, wid=col_widths[i]) for i, col in enumerate(row)]) | ||
| 24 | |||
