80 for (
auto &o : object_types) {
81 if (o.live_count != 0 &&
82 !(allow_globals && o.is_global)) {
83 printf(
"Error! %d objects created by %s still live\n",
84 o.live_count, o.created);
87 if (o.is_global && o.total_created > max_globals) {
88 printf(
"Error! %d global objects created by %s, max is %d\n",
89 o.total_created, o.created, max_globals);
93 total += o.total_created;
95 if (!allow_none && total == 0) {
96 printf(
"Error! No objects created. Ensure gpu_debug is set, ");
97 printf(
"and record_gpu_debug is called from halide_print.\n");