Skip to main content

No project description provided

Project description

VizQ

Description

Tool to create plots based on CPU, GPU and memory usage.

Installation

pip install vizq

Usage

You can see the options of this project by doing python -m vizq.visualizaion --help

usage: visualization.py [-h] [-f FILES] [-m MEMORY] [-o OUTPUT] [-c CPU_TIMELINE_TITLE] [-cxl CPU_X_AXIS_LABEL] [-cyl CPU_Y_AXIS_LABEL] [-g GPU_TIMELINE_TITLE]
                        [-gxl GPU_X_AXIS_LABEL] [-gyl GPU_Y_AXIS_LABEL] [-r RSS_TIMELINE_TITLE] [-rxl RSS_X_AXIS_LABEL] [-ryl RSS_Y_AXIS_LABEL] [-of OFFSET]
                        [--x-range X_RANGE X_RANGE] [-mu {kb,mb,gb}]

optional arguments:
  -h, --help            show this help message and exit
  -f FILES, --file FILES
                        File or files to process. Can specify multiple with: "-f file1.log -f file2.log"
  -m MEMORY, --memory MEMORY
                        Total memory size, expected when values are percentages.
  -o OUTPUT, --output OUTPUT
                        Path of output files.
  -c CPU_TIMELINE_TITLE, --cpu-timeline-title CPU_TIMELINE_TITLE
                        CPU timeline title to use in the plot
  -cxl CPU_X_AXIS_LABEL, --cpu-x-axis-label CPU_X_AXIS_LABEL
                        CPU timeline x axis label to use in the plot
  -cyl CPU_Y_AXIS_LABEL, --cpu-y-axis-label CPU_Y_AXIS_LABEL
                        CPU timeline y axis label to use in the plot
  -g GPU_TIMELINE_TITLE, --gpu-timeline-title GPU_TIMELINE_TITLE
                        GPU timeline title to use in the plot
  -gxl GPU_X_AXIS_LABEL, --gpu-x-axis-label GPU_X_AXIS_LABEL
                        GPU timeline x axis label to use in the plot
  -gyl GPU_Y_AXIS_LABEL, --gpu-y-axis-label GPU_Y_AXIS_LABEL
                        GPU timeline y axis label to use in the plot
  -r RSS_TIMELINE_TITLE, --rss-timeline-title RSS_TIMELINE_TITLE
                        RSS timeline title to use in the plot
  -rxl RSS_X_AXIS_LABEL, --rss-x-axis-label RSS_X_AXIS_LABEL
                        RSS timeline x axis label to use in the plot
  -ryl RSS_Y_AXIS_LABEL, --rss-y-axis-label RSS_Y_AXIS_LABEL
                        RSS timeline y axis label to use in the plot
  -of OFFSET, --offset OFFSET
                        Offset line to draw on the chart
  --x-range X_RANGE X_RANGE
                        Start and end of the x axis range to plot
  -mu {kb,mb,gb}, --memory-unit {kb,mb,gb}
                        memory unit to use between [kb, mb, gb]

Examples

Plot specifying chart title and axis titles using a CPU logs.

python -m vizq.visualization -f device2/211/cpu_use_20231019-123121.log \
--cpu-timeline-title "CPU Timeline title" \
--cpu-x-axis-label "new X axis label" \
--cpu-y-axis-label "new Y axis label"

Plot specifying chart title and axis titles using a GPU logs.

python -m vizq.visualization -f device2/211/gpu_20231019-123124.log \
--gpu-timeline-title "GPU Timeline title" \
--gpu-x-axis-label "new X axis label" \
--gpu-y-axis-label "new Y axis label"

Plot specifying chart title and axis titles using a rss memory logs.

python -m vizq.visualization -f device2/211/rss_mem_20231019-123119.log \
--rss-timeline-title "RSS memory timelie" \
--rss-x-axis-label "new X axis label" \
--rss-y-axis-label "new Y axis label"

Use the offset, X axis range and memory unit example. --offset draws an horizontal line at the specified value, would be a fixed line at offset value, not a percentage. --x-range will just save the portion of the plot for the range [x1, x2] --memory-unit could be one of [kb, mb, gb] and will convert the values in the chart to one of those units.

python -m vizq.visualization -f device2/211/rss_mem_20231019-123119.log --offset 90 --x-range 50 150 --memory-unit mb

Contributing

Instructions on how to contribute to the project

References

Link to references used in the project (Books, posts, videos, courses, repos, etc.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vizq-0.3.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vizq-0.3.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file vizq-0.3.0.tar.gz.

File metadata

  • Download URL: vizq-0.3.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for vizq-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2d17462e57d32b9274a8b5f78b5002e25e3880c84b90528fbe092b24a81ca73c
MD5 47e2096dc7ba8a410e3eaad1df0b1c3b
BLAKE2b-256 e67562d6c4ccb62c39ae0db0a6e140510ded03dd17e6092c0a97b87950ac7ba1

See more details on using hashes here.

File details

Details for the file vizq-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: vizq-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for vizq-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4469400ae0e1e21cdf4eb2e498eaacbf9f31ba632c26b6a6655db186d44e5c09
MD5 f0901a01f99eb87da56c56fa9d459a3b
BLAKE2b-256 f5ab7f449d271f31fcdbb88700fc8a134312740d42bbdb0abaaf480c88b4fec5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page