for debugging only
| 50 | |
| 51 | // for debugging only |
| 52 | static void caps_print_stats(value & v, const std::string & path) { |
| 53 | std::string ops; |
| 54 | for (const auto & name : v->stats.ops) { |
| 55 | ops += name + " "; |
| 56 | } |
| 57 | JJ_DEBUG("Value %s, type: %s %s, ops: %s", |
| 58 | path.c_str(), |
| 59 | v->type().c_str(), |
| 60 | v->stats.used ? "(used)" : "", |
| 61 | ops.c_str()); |
| 62 | } |
| 63 | |
| 64 | std::map<std::string, bool> caps::to_map() const { |
| 65 | return { |