Skip to main content

Time marking package in code.

Project description

Описание

Данный модуль предназначен для установки временных меток в коде, удобно использовать в циклах.

import tmark as tm
import time
tracker = tm.LatencyTracker()
# Имитация выполнения цикла с несколькими метками в одной итерации
for i in range(5):
    tracker.start("operation_1")
    time.sleep(0.1 + i * 0.02)  # Симуляция первой операции
    tracker.stop("operation_1")

    tracker.start("operation_2")
    time.sleep(0.2 + i * 0.03)  # Симуляция второй операции
    tracker.stop("operation_2")

    tracker.start("operation_3")
    time.sleep(0.15 + i * 0.01)  # Симуляция третьей операции
    tracker.stop("operation_3")

# Построение графика
tracker.plot()

alt text

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

tmark-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

tmark-0.0.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file tmark-0.0.1.tar.gz.

File metadata

  • Download URL: tmark-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for tmark-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f900d4f6f2e08a1ef0c70f49322d9b57fb1adbcf75206398bc17b95dfd99acd4
MD5 9a6c38b0ed91892a3a54f4ae5d389ef9
BLAKE2b-256 f95e872ae7702ae9416d0e12172e0c6ecab81eeb388ac8ac27bcf0c13bf4a932

See more details on using hashes here.

File details

Details for the file tmark-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tmark-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for tmark-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f607042a3e50ce6a6689c0f54459a472e235938b3d580627961a0407429d5620
MD5 9f97bb9cb44420fecdf54067a0921b53
BLAKE2b-256 e79b21cd77d8fa9af456097497e05eba002263625759e7bb95f1981592a3a822

See more details on using hashes here.

Supported by

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