Skip to main content

tslogs Stars

A Python parser and visualizer for ThrottleStop logs.

GitHub Workflow Status (branch) License Source Coverage PyPI Versions Wheel GitHub issues Downloads

🚩 Table of Contents

🗺️ Overview

tslogs is a Python library to parse, browse, export and visualize ThrottleStop log files.

📖 What is ThrottleStop ?

ThrottleStop is a small application designed to monitor for and correct the three main types of CPU throttling that are being used on many laptop computers.

Official Thread - here

Comprehensive Guide - here

Why would you like to parse ThrottleStop Logs ?

TODO

🏳️ Enable Logging in ThrottleStop

Select the `Log File` checkbox Click on `Options` button and Select the Folder where you want logs to be saved.

🔧 Installing

Installing with pip is the easiest:

# pip install tslogs          # if you have the admin rights
$ pip install tslogs --user   # install it in a user-site directory

Finally, a development version can be installed from GitHub using setuptools & pip

$ git clone https://github.com/ashutoshvarma/tslogs
$ cd tslogs
# pip install .

💡 Usage

1. tslogs - CLI tool

$ tslogs --help
usage: tslogs [-h] [--json | --plot ] [--dates START END] [--interval INTERVAL] [--smooth SMOOTH] [--output FILE] [--indent VALUE] [--quiet]
              [--version]
              paths paths

positional arguments:
  paths                 One or more paths to log dir or log files.

optional arguments:
  -h, --help            show this help message and exit
  --json, -j            dump all parsed log data.
  --plot, -p            Plot given the logs attributes (default: None). Allowed values are {multi, c0, clock_mod, chip_mod, battery_mw,       
                        cpu_temp, gpu_mhz, gpu_temp, vid, power}
  --quiet, -q           Run in silent mode
  --version, -v         show program's version number and exit

Filter:
  --dates, -d START END
                        Datetime range to filter (in ISO format, yyyy-mm-dd HH:MM:SS)

Plot Options:
  --interval, -I INTERVAL
                        Plot data frequency in seconds (default: 60)
  --smooth, -S SMOOTH   Span interval for smoothing the graph, if data frequency is very high using increasing this with 'interval' can       
                        yield smooth graph (default: 2)

Output:
  --output, -o FILE     Output file path, default is '-' (stdout)
  --indent VALUE        indent value for json output, default is 4
  • a.) Print the summary

    tslogs-summary

  • b.) Plot Graphs

    This will plot cpu_temp, multi (clock speed in GHz), power (in W) and c0 from logs between time 16:00 to 16:15 in 2020-07-28.txt

    tslogs .\tests\logs\2020-07-28.txt -p cpu_temp multi power --smooth 2 --interval 1 -d "2020-07-28 16:00:00" "2020-07-28 16:15:00"
    

    tslogs-plot

2. tslogs - Python Module

TODO

See parse_logs() and LogLine in parse.py. For more references see the CLI implementation in cli.py

📜 License

This library is provided under the open-source MIT license.

Metadata

Release files for tslogs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tslogs 0.1.0
File Size Uploaded Provenance Actions
tslogs-0.1.0.zip 424.5 kB Without provenance Details for tslogs-0.1.0.zip

Built distribution (wheel)

Table of built distributions (wheels) for tslogs 0.1.0
File Interpreter ABI Platform Actions
tslogs-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for tslogs-0.1.0-py2.py3-none-any.whl

Total release size: 438.6 kB

Release files / tslogs-0.1.0.zip

Download URL tslogs-0.1.0.zip
Size 424.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4788cbc720429bf1759b6ed9892eca44f0db0db4bfce9451f55b8a91e387378
BLAKE2b-256 checksum
How to use checksums
3f96b2b4b65932b0cae6b158caebb173febf58e26d9aabb1f18c36ac66e1c8fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.3

Release files / tslogs-0.1.0-py2.py3-none-any.whl

Download URL tslogs-0.1.0-py2.py3-none-any.whl
Size 14.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5de3d739cdc691d5404453d2cf18839765c032566b3392b034ceb1bbdd6ce890
BLAKE2b-256 checksum
How to use checksums
79f5da3dd78a97ca36b4ca37fd4cdb05eebcae41aa8b0d0a130819f4ba8da17f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.3

Security for tslogs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page