No project description provided
Project description
Evergreen Task Profiler
Break down the runtime of the different steps comprising an evergreen task.
Installation
Installation is done via pip:
pip install evg-task-profiler-py
Usage
An example of usage is shown below. Note: You will need to retrieve the task log contents and send it to the profiler, a tool like the Evergreen API client can be useful for this purpose.
from evergreen import EvergreenApi
from evg_task_profiler_py import TaskProfiler
task_id = "some_evg_task_id"
evg_api = EvergreenApi.get_api(use_config_file=True)
profiler = TaskProfiler()
task = evg_api.task_by_id(task_id)
for line in task.stream_log("task_log"):
profiler.process_line(line)
for event in profiler.get_events():
print(f"{event.index}: {event.name} - {event.step}: {event.duration} ms")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for evg_task_profiler_py-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9557dfd729dda5468096c438c79988aeddc86fa190fc29ffb3b2298f1136abf |
|
MD5 | c6abd5c1096c214cc204741c59c0a76c |
|
BLAKE2b-256 | 9e448e88851c8d551d93684f2a54238b7bfa796ac8a30798df216074ba581924 |
Close
Hashes for evg_task_profiler_py-0.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6df92a7ebfa9c0c4a6fb698aca61789689fb02b29769b90a654eec89b506962 |
|
MD5 | 3d3a688d49076a28c6707b156314519e |
|
BLAKE2b-256 | 5fd73f00ff7ddd4f64643cacf56de841d76c0fafd06cc4f5223f7f2b55b81aba |
Close
Hashes for evg_task_profiler_py-0.2.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4898be2e06a4ebfce73d48b26f1be0c88078b84f1a56efb9053c03baccfd86d8 |
|
MD5 | b9a6f8e6a2b2bd39d430125715583837 |
|
BLAKE2b-256 | 3b4acc7da9b4b76b3da10874cad722397a6981f1c7bd2c7648f4ecf7329c2b90 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327bda7b6a4fbabe058e6ce154007714b31c9f90aeaa332abdeb8a282cd1c15f |
|
MD5 | 2b411e1884ba43323db89cfe777e67d8 |
|
BLAKE2b-256 | b061c69aedc94649d5b293afd7a99aeabd65cce20745c36c7ac9265ae23143d3 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca0a92395d3fdc1b5f089abf2b40716207fae6f8000d856b03fa4715493ee473 |
|
MD5 | d3172e0e0b5491f624a60e32381b2743 |
|
BLAKE2b-256 | a50028bdb1f093df0d138d57c919f4196acec966173ae4f7bd782b3165b4a369 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c20912d0df1af3783820705a6922d951fbd35050215859d62e85744fa85d8d |
|
MD5 | dea538c02c29c944a320fc038200c164 |
|
BLAKE2b-256 | b4ae6c339007bbcf2ecb6492e726fcc621ef40efc750c83d55ac7c963169a0da |
Close
Hashes for evg_task_profiler_py-0.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f755d9f3e33d50280044e92890a7f526f7e936d55817fd9e3d8bc1e148b0064f |
|
MD5 | b870e5c5763725b6ee1ee76f4e75f93c |
|
BLAKE2b-256 | 60db0c55907c04ed377099b97340693f85d7105cc5cc8c7d77f1cc7c7ef18853 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0c070ca1280f747ec7347e330bc986eb80987f4dc2c5fe518fc6d85ea2530e |
|
MD5 | 35fd855465d0c8c541a604f571a38ea8 |
|
BLAKE2b-256 | 091d3db8fe4412fa2ce66a27683f9a6c35c1f9ed9828f99d186e1471738c49f7 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b73bb86d7cdc1cc189a0992bc581d028d0b3e88b3797577a4761d04e0a293f |
|
MD5 | fbb095c3271b073a0ba8ed591ba7a4cb |
|
BLAKE2b-256 | 531aded91c074510f037fd0b4729a6c421deff9fa9e8e359c6eedc0ba533bf1f |
Close
Hashes for evg_task_profiler_py-0.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03cf6b5717e586aeec022b919346f8cc915b5ffd1f94cd62e49239e78014489c |
|
MD5 | 60deb302aa3bc0287c904b70baf7f3c5 |
|
BLAKE2b-256 | 01814852b1c3d1be342c36845ac753cca6492bef84c13fbe55a49ee7f9d182f6 |
Close
Hashes for evg_task_profiler_py-0.2.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d90dc01ebed181ff18093e60051945e5861568075a12ca2346d21bbb041a35 |
|
MD5 | 8df5778d1e70a934feb6a03036cd6f7e |
|
BLAKE2b-256 | dc8ea99054adea33cb2d5208fcdc089e5f08fe43e897469bf1b051b31e6aa43f |
Close
Hashes for evg_task_profiler_py-0.2.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058bd11534917363b0b08a269d93f3d5aba28f82a4dbc4cfc27d3cea6f2ecd1c |
|
MD5 | 68e00b00f76d46a0a7562fa367cc9c8d |
|
BLAKE2b-256 | 7f3f2b0246f021337d878fdc1b924a4b0a833ef9edc96ecd19af8ae2d878b6bb |
Close
Hashes for evg_task_profiler_py-0.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3496443f529a8c381fc1ed85411c9e8004768853ef6451a066137743b9d04bbc |
|
MD5 | 1892bca779e328161005b0357b357526 |
|
BLAKE2b-256 | b3da85799d79ff8fdab14874f584fcbf667b332b2fb19672c1e4cab47aaeef6d |
Close
Hashes for evg_task_profiler_py-0.2.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5bec99ae068b4ee965c10e5cc88a2556bc10847c0192fab1602ea8a6f34a450 |
|
MD5 | 66237d1a2cc7016cb3bfdd1cc83d774f |
|
BLAKE2b-256 | 21e41bccccb3889ac529f5edc6ba75310f25f5df91c2ca8232906195daa1401a |