Go Language Runtime Statistics and Profiling
TIBCO Cloud Integration- Flogo (PAYG) allows you to gather runtime system statistics for a Flogo App that is running.
The command returns the following statistics:
System Metric Name | Description |
---|---|
cmdline | Command-line arguments passed to the application binary |
cpus | Number of logical CPUs usable by the current process |
goroutines | The number of Go routines that currently exist |
memstats | Memory statistics for the current process. Refer to https://golang.org/pkg/runtime/#MemStats for more details. |
processid | System process ID |
version | Go language version used to build the application |
Profiling your application runtime
You can collect and visualize runtime profiling data for Flogo Apps using the pprof tool as explained in https://golang.org/pkg/runtime/pprof/.
Endpoint | Description |
---|---|
/debug/pprof | List all profiles |
/debug/pprof/profile | Profile current CPU usage. By default, it is profiled for every 30 seconds. To change the profiling interval, set seconds query parameter to a desired value. For example,
go tool pprof http://localhost:<port>/debug/pprof/profile?seconds=15 |
/debug/pprof/heap | A sampling of memory allocations of live objects. For example,
go tool pprof http://localhost:<port>/debug/pprof/heap |
/debug/pprof/goroutine | Stack traces of all current Go routines. For example,
go tool pprof http://localhost:<port>/debug/pprof/goroutine |
/debug/pprof/trace | A trace of execution of the current program. For example,
go tool pprof http://localhost:<port>/debug/pprof/trace |
Related reference
Copyright © Cloud Software Group, Inc. All rights reserved.