JuliaPerf / PProf.jl

Export Julia profiles to the pprof format
MIT License
154 stars 17 forks source link

Truncate strings that are to long #50

Open vchuravy opened 2 years ago

vchuravy commented 2 years ago
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
Uroc327 commented 1 year ago

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 .

vchuravy commented 1 year ago

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

michel2323 commented 3 months ago

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.