wearpants / instrument Goto Github PK
View Code? Open in Web Editor NEWPython observability & instrumentation primitives for metrics and benchmarking
License: BSD 3-Clause "New" or "Revised" License
Python observability & instrumentation primitives for metrics and benchmarking
License: BSD 3-Clause "New" or "Revised" License
explain 'batteries included' philosophy
document install targets/ requirements files
That does all()-first()
Think about how to optimize common first_and_rest() use case
Because stupidness
Maybe setattr too
Use lists + stdlib statistics
maybe instument.reducer / instrument.producer / instrument.function
instead of teardown
explaind how what the numpy module does, (what charts & stats mean, w/ some wikipedia links)
include some sample charts!
would be helpful to have a version of measure_reduce that can use len() on first arg like measure_produce does on return value
See pep
has no one done this already?!?!?
integrate sphinx doctests runner with traditional unit tests
Currently all/first/rest will ouput 0 items in 0.00 seconds
- is this sensible, or should they just output nothing?
Maybe leave it up to metric functions to filter it out
CsvFile.metric looks nicer
with notes about 0.5+
this is dangerously close to supporting coroutines, but probably a good idea
add support for tox (multiple python versions)
suport running tests under nose?
Mocks? Introspect internals? meh. Maybe just verify the correct files are written.
Threads mainly, also multi processing
This is all about outputs since the instrumentation is stack local
maybe measure_sequence_producer is a better name than measure_produce?
would be helpful to have a version of measure_reduce that can use len()
on first arg like measure_produce does on return value
Sometimes you don't know the count before a block, but rather calculate it during. Do something like
with instrument.block(name='foo') as block:
# do stuff to produce some_number
block.count = some_number
Yup
a sentence or two + usage example
as argument to class constructor
instead of in changelog
Decorators can be used to wrap a generator function so that each call returns a measured iterable. This behavior is available via measure_iter.func()
and so forth. The name is a bit confusing, and it'd be better to make it an active verb like measure_iter.decorate()
Maybe?
b/c even I forgot
Steal from the best: https://github.com/hynek/attrs/blob/master/src/attr/_make.py#L230
set output file/dir to a tmp, check contents for correctness & cleanup
A simple metric function using stdlib's logging
get on travis
like prometheus, I think the following:
except_block
except_iter
except_func
that only measure on exceptions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.