You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (globfunc&& !jl_id_start_char(u8_nextchar(sn, &i))) {
n+=jl_printf(out, ":(");
quote=1;
}
}
n+=jl_static_show_x_sym_escaped(out, sym);
if (globfunc) {
n+=jl_printf(out, ")");
if (quote) {
n+=jl_printf(out, ")");
}
}
if (dv->parameters&& (jl_value_t*)dv!=dv->name->wrapper) {
size_tj, tlen=jl_nparams(dv);
if (tlen>0) {
n+=jl_printf(out, "{");
for (j=0; j<tlen; j++) {
jl_value_t*p=jl_tparam(dv,j);
n+=jl_static_show_x(out, p, depth);
if (j!=tlen-1)
n+=jl_printf(out, ", ");
}
n+=jl_printf(out, "}");
}
}
}
Maybe we can factor out a helper function that shares the same code for jl_static_show and this code?
Or maybe we even just want to directly call jl_static_show() on a stringstream? Is there a reason we didn't do this in the first place?
The heap snapshot currently outputs names that are missing Parameters when printing the names of Types.
For example:
The issue is that we are currently using this code to print the names of types:
julia/src/gc-heap-snapshot.cpp
Lines 217 to 221 in 4ff526a
which does this:
I think we should be instead following the approach used in
jl_static_show
to print the fully parameterized names of types. Something like this:julia/src/rtutils.c
Lines 772 to 845 in 4ff526a
Maybe we can factor out a helper function that shares the same code for
jl_static_show
and this code?Or maybe we even just want to directly call
jl_static_show()
on a stringstream? Is there a reason we didn't do this in the first place?CC: @apaz-cli, @vtjnash, @IanButterworth, @gbaraldi, @vilterp.
Thanks all! :)
julia/src/rtutils.c
Lines 798 to 809 in 4ff526a
The text was updated successfully, but these errors were encountered: