Skip to main content

gwr_models/
lib.rs

1// Copyright (c) 2023 Graphcore Ltd. All rights reserved.
2
3#![doc = include_str!(gwr_build::generated_crate_docs_path!())]
4
5use std::fmt::Display;
6use std::rc::Rc;
7
8use gwr_track::entity::Entity;
9use gwr_track::info;
10
11pub mod ethernet_frame;
12pub mod ethernet_link;
13pub mod fabric;
14pub mod fc_pipeline;
15pub mod memory;
16pub mod processing_element;
17pub mod registers;
18pub mod ring_node;
19pub mod test_helpers;
20
21pub fn log_stats(entity: &Rc<Entity>, stats: impl Display) {
22    for line in stats.to_string().lines() {
23        info!(entity ; "{line}");
24    }
25}