MCPcopy Index your code
hub / github.com/brayniac/tic

github.com/brayniac/tic @0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4.0 ↗ · + Follow
141 symbols 305 edges 14 files 60 documented · 43%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tic - time interval counts and statistics

a high-performance stats library focused on rates and latencies from timestamped events

conduct-badge travis-badge downloads-badge release-badge license-badge

Code of Conduct

NOTE: All conversations and contributions to this project shall adhere to the Code of Conduct

Usage

The API documentation of this library can be found at docs.rs/tic

Performance and Example

Performance is a top-priority. To test performance, we use tic to benchmark itself.

cargo run --release --example benchmark -- --help
cargo run --release --example benchmark

Features

  • high throughput - millions of samples per second
  • latched histogram - for analyzing the full distribution of sample lengths
  • heatmaps - to generate distribution traces and waterfalls
  • meters - to expose readings for client usage
  • http metrics - simple metrics on http for scraping and monitoring, Prometheus compatible
  • generic - channel type is generic, and used to label the type of sample
  • flexible - per channel stats are accessible by registering appropriate Interests

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

new
called by 42
src/data/counters.rs
add_interest
called by 9
src/sender.rs
init
called by 9
src/data/allans.rs
add_interest
called by 7
src/receiver.rs
remove
called by 7
src/data/allans.rs
build
called by 6
src/config.rs
count
called by 6
src/data/meters.rs
clear
called by 6
src/data/meters.rs

Shape

Method 92
Function 30
Class 14
Enum 5

Languages

Rust100%

Modules by API surface

src/receiver.rs21 symbols
src/data/histograms.rs15 symbols
src/config.rs15 symbols
src/data/meters.rs12 symbols
src/data/heatmaps.rs12 symbols
examples/benchmark.rs12 symbols
examples/allan.rs12 symbols
src/data/counters.rs11 symbols
src/data/sample.rs9 symbols
src/data/allans.rs9 symbols
src/sender.rs7 symbols
src/common.rs6 symbols

For agents

$ claude mcp add tic \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact