numam-spdk/scripts/pkgdep
Konrad Sztyber 597688b2b1 scripts/trace: use ijson to parse the traces
Since the trace files can get very large (several GBs), parsing them
using python's json module might require an unfeasible amount of memory,
as it needs to load the whole file first.  The ijson [1] library
provides interfaces for parsing files iteratively, only loading a small
portion of a file at a time.

It requires the input JSON to have the tsc_rate and the definitions of
the tracepoints listed before the tracepoint entries.  It's not a big
deal, as this is the way `spdk_trace` generates it, but it's worth
noting, as passing that file through something like `jq -S` might make
it unreadable to the trace script.

[1] https://pypi.org/project/ijson

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I03c0c3fb47091da615a3978b8d63edf4d876b811
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8275
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
2021-07-07 09:43:37 +00:00
..
arch.sh scripts/trace: use ijson to parse the traces 2021-07-07 09:43:37 +00:00
centos.sh pkgdep: Introduce RHEL-specific source 2020-06-01 09:20:24 +00:00
clear-linux-os.sh scripts/pkgdep.sh: install pyelftools for DPDK 2021-02-04 08:43:05 +00:00
common.sh pkgdep: Update liburing version to 2.0 release 2021-05-05 13:27:16 +00:00
debian.sh scripts/trace: use ijson to parse the traces 2021-07-07 09:43:37 +00:00
fedora.sh pkgdep: Introduce RHEL-specific source 2020-06-01 09:20:24 +00:00
freebsd.sh pkgdep: Add bash-completion package to DEV_TOOLS 2021-02-26 12:24:56 +00:00
requirements.txt Add requirements.txt for Python Pip 2020-10-20 08:54:25 +00:00
rhel.sh scripts/trace: use ijson to parse the traces 2021-07-07 09:43:37 +00:00
sles.sh pkgdep: Add bash-completion package to DEV_TOOLS 2021-02-26 12:24:56 +00:00
ubuntu.sh pkgdep: Introduce Debian-specific source 2020-06-01 09:20:24 +00:00