PProf.jl icon indicating copy to clipboard operation
PProf.jl copied to clipboard

Truncate strings that are to long

Open vchuravy opened this issue 3 years ago • 4 comments

Error: <stdin>: syntax error in line 22 scanning a quoted string (missing endquote? longer than 16384?)
String starting:"_savevalues!(::OrdinaryDiffEq.ODEIntegrator{OrdinaryDiffEq.Euler, true, ClimaCor

vchuravy avatar Jan 24 '22 21:01 vchuravy

How do you want to do this? Some semantic/nested truncation where inner details are left out or just cutting off like jrfonseca/gprof2dot@cbce9969dbfe15fe4ebda4e37d0acaa1dae3b5dc .

Uroc327 avatar Feb 03 '23 12:02 Uroc327

Semantic aware would be nice, but I suspect cutting it off is good enough.

vchuravy avatar Feb 03 '23 15:02 vchuravy

I compiled graphviz with a custom value of YY_BUF_SIZE in scan.l and scan.c. I used actually the value that is commented out there, so I assume others ran into this too in C++. That might be a bit of brute force, but it worked in my case, and since Graphviz_jll should be an artifact soon https://github.com/JuliaPerf/PProf.jl/pull/71 , that might resolve it in most cases.

michel2323 avatar Mar 20 '24 20:03 michel2323