@@ -32,7 +32,7 @@ function grab_profiles_from_component {
...
@@ -32,7 +32,7 @@ function grab_profiles_from_component {
for profile in${requested_profiles};do
for profile in${requested_profiles};do
case${profile}in
case${profile}in
cpu)
cpu)
go tool pprof "-pdf""${binary}""http://localhost:${tunnel_port}/${path}/profile">"${output_prefix}-${profile}-profile-${timestamp}.pdf"
go tool pprof "-pdf""${binary}""http://localhost:${tunnel_port}${path}/debug/pprof/profile">"${output_prefix}-${profile}-profile-${timestamp}.pdf"
;;
;;
mem)
mem)
# There are different kinds of memory profiles that are available that
# There are different kinds of memory profiles that are available that
...
@@ -40,7 +40,7 @@ function grab_profiles_from_component {
...
@@ -40,7 +40,7 @@ function grab_profiles_from_component {
# --alloc-space, --alloc-objects. We need to iterate over all requested
# --alloc-space, --alloc-objects. We need to iterate over all requested
# kinds.
# kinds.
for flag in${mem_pprof_flags};do
for flag in${mem_pprof_flags};do
go tool pprof "-${flag}""-pdf""${binary}""http://localhost:${tunnel_port}/${path}/heap">"${output_prefix}-${profile}-${flag}-profile-${timestamp}.pdf"
go tool pprof "-${flag}""-pdf""${binary}""http://localhost:${tunnel_port}${path}/debug/pprof/heap">"${output_prefix}-${profile}-${flag}-profile-${timestamp}.pdf"