dump_append 59 ext/objspace/objspace_dump.c dump_append(dc, "\""); dump_append 64 ext/objspace/objspace_dump.c dump_append(dc, "\\%c", c); dump_append 67 ext/objspace/objspace_dump.c dump_append(dc, "\\u0000"); dump_append 70 ext/objspace/objspace_dump.c dump_append(dc, "\\b"); dump_append 73 ext/objspace/objspace_dump.c dump_append(dc, "\\t"); dump_append 76 ext/objspace/objspace_dump.c dump_append(dc, "\\f"); dump_append 79 ext/objspace/objspace_dump.c dump_append(dc, "\\n"); dump_append 82 ext/objspace/objspace_dump.c dump_append(dc, "\\r"); dump_append 86 ext/objspace/objspace_dump.c dump_append(dc, "\\u%04d", c); dump_append 88 ext/objspace/objspace_dump.c dump_append(dc, "%c", c); dump_append 91 ext/objspace/objspace_dump.c dump_append(dc, "\""); dump_append 97 ext/objspace/objspace_dump.c dump_append(dc, "{\"type\":\"SYMBOL\", \"value\":"); dump_append 99 ext/objspace/objspace_dump.c dump_append(dc, "}"); dump_append 142 ext/objspace/objspace_dump.c dump_append(dc, "true"); dump_append 145 ext/objspace/objspace_dump.c dump_append(dc, "false"); dump_append 148 ext/objspace/objspace_dump.c dump_append(dc, "null"); dump_append 151 ext/objspace/objspace_dump.c dump_append(dc, "%ld", FIX2LONG(value)); dump_append 154 ext/objspace/objspace_dump.c dump_append(dc, "%#g", RFLOAT_VALUE(value)); dump_append 160 ext/objspace/objspace_dump.c dump_append(dc, "{}"); dump_append 173 ext/objspace/objspace_dump.c dump_append(dc, ", \"references\":[\"%p\"", (void *)ref); dump_append 175 ext/objspace/objspace_dump.c dump_append(dc, ", \"%p\"", (void *)ref); dump_append 183 ext/objspace/objspace_dump.c dump_append(dc, ", \"bytesize\":%ld", RSTRING_LEN(obj)); dump_append 185 ext/objspace/objspace_dump.c dump_append(dc, ", \"capacity\":%"PRIdSIZE, rb_str_capacity(obj)); dump_append 188 ext/objspace/objspace_dump.c dump_append(dc, ", \"value\":"); dump_append 215 ext/objspace/objspace_dump.c dump_append(dc, "\"%p\":{", (void *)obj); dump_append 217 ext/objspace/objspace_dump.c dump_append(dc, "{\"address\":\"%p\", ", (void *)obj); dump_append 218 ext/objspace/objspace_dump.c dump_append(dc, "\"type\":\"%s\"", obj_type(obj)); dump_append 221 ext/objspace/objspace_dump.c dump_append(dc, ", \"class\":\"%p\"", (void *)dc->cur_obj_klass); dump_append 223 ext/objspace/objspace_dump.c dump_append(dc, ", \"frozen\":true"); dump_append 227 ext/objspace/objspace_dump.c dump_append(dc, ", \"node_type\":\"%s\"", ruby_node_name(nd_type(obj))); dump_append 236 ext/objspace/objspace_dump.c dump_append(dc, ", \"embedded\":true"); dump_append 238 ext/objspace/objspace_dump.c dump_append(dc, ", \"broken\":true"); dump_append 240 ext/objspace/objspace_dump.c dump_append(dc, ", \"fstring\":true"); dump_append 242 ext/objspace/objspace_dump.c dump_append(dc, ", \"shared\":true"); dump_append 247 ext/objspace/objspace_dump.c dump_append(dc, ", \"encoding\":\"%s\"", rb_enc_name(rb_enc_from_index(ENCODING_GET(obj)))); dump_append 251 ext/objspace/objspace_dump.c dump_append(dc, ", \"size\":%"PRIdSIZE, (size_t)RHASH_SIZE(obj)); dump_append 253 ext/objspace/objspace_dump.c dump_append(dc, ", \"default\":\"%p\"", (void *)RHASH_IFNONE(obj)); dump_append 257 ext/objspace/objspace_dump.c dump_append(dc, ", \"length\":%ld", RARRAY_LEN(obj)); dump_append 259 ext/objspace/objspace_dump.c dump_append(dc, ", \"shared\":true"); dump_append 261 ext/objspace/objspace_dump.c dump_append(dc, ", \"embedded\":true"); dump_append 267 ext/objspace/objspace_dump.c dump_append(dc, ", \"name\":\"%s\"", rb_class2name(obj)); dump_append 272 ext/objspace/objspace_dump.c dump_append(dc, ", \"struct\":\"%s\"", RTYPEDDATA_TYPE(obj)->wrap_struct_name); dump_append 276 ext/objspace/objspace_dump.c dump_append(dc, ", \"value\":\"%g\"", RFLOAT_VALUE(obj)); dump_append 280 ext/objspace/objspace_dump.c dump_append(dc, ", \"ivars\":%u", ROBJECT_NUMIV(obj)); dump_append 286 ext/objspace/objspace_dump.c dump_append(dc, ", \"fd\":%d", fptr->fd); dump_append 290 ext/objspace/objspace_dump.c dump_append(dc, "}"); dump_append 297 ext/objspace/objspace_dump.c dump_append(dc, "]"); dump_append 300 ext/objspace/objspace_dump.c dump_append(dc, ", \"file\":\"%s\", \"line\":%lu", ainfo->path, ainfo->line); dump_append 303 ext/objspace/objspace_dump.c dump_append(dc, ", \"method\":\"%s\"", RSTRING_PTR(m)); dump_append 305 ext/objspace/objspace_dump.c dump_append(dc, ", \"generation\":%"PRIuSIZE, ainfo->generation); dump_append 309 ext/objspace/objspace_dump.c dump_append(dc, ", \"memsize\":%"PRIuSIZE, memsize); dump_append 312 ext/objspace/objspace_dump.c dump_append(dc, ", \"flags\":{"); dump_append 314 ext/objspace/objspace_dump.c dump_append(dc, "\"%s\":true", rb_id2name(flags[i])); dump_append 315 ext/objspace/objspace_dump.c if (i != n-1) dump_append(dc, ", "); dump_append 317 ext/objspace/objspace_dump.c dump_append(dc, "}"); dump_append 320 ext/objspace/objspace_dump.c dump_append(dc, "}"); dump_append 331 ext/objspace/objspace_dump.c if (dc->roots++) dump_append(dc, ",\n"); dump_append 344 ext/objspace/objspace_dump.c dump_append(dc, "]},\n"); dump_append 346 ext/objspace/objspace_dump.c dump_append(dc, "\"%p\":", (void *)obj); dump_append 347 ext/objspace/objspace_dump.c dump_append(dc, "{\"type\":\"ROOT\", \"root\":\"%s\", \"references\":[\"%p\"", category, (void *)obj); dump_append 350 ext/objspace/objspace_dump.c dump_append(dc, ", \"%p\"", (void *)obj); dump_append 433 ext/objspace/objspace_dump.c if (dc.roots) dump_append(&dc, "\n"); dump_append 465 ext/objspace/objspace_dump.c dump_append(&dc, "{\n"); dump_append 468 ext/objspace/objspace_dump.c if (dc.roots) dump_append(&dc, "]}"); dump_append 472 ext/objspace/objspace_dump.c dump_append(&dc, "\n}");