MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / sample_points_i32

Function sample_points_i32

src/framework/debug/trace.cpp:241–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::string sample_points_i32(const std::vector<int32_t> & values) {
242 if (values.empty()) {
243 return "[]";
244 }
245 const std::vector<size_t> points = sample_point_indices(values.size());
246 std::ostringstream oss;
247 oss << "[";
248 for (size_t i = 0; i < points.size(); ++i) {
249 if (i != 0) {
250 oss << ",";
251 }
252 const size_t index = points[i];
253 oss << index << ":" << values[index];
254 }
255 oss << "]";
256 return oss.str();
257}
258
259void trace_log_f32(const std::string & name, const std::vector<int64_t> & dims, const std::vector<float> & values) {
260 if (!trace_log_enabled()) {

Callers 1

trace_log_i32Function · 0.85

Calls 4

sample_point_indicesFunction · 0.85
strMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected