aboutsummaryrefslogtreecommitdiff
path: root/lib/debug
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-10 20:45:34 +0700
committerShulhan <ms@kilabit.info>2023-09-11 02:16:52 +0700
commitb913e3a4d5bff2dbc76ce5afea39d5d7ce4ced3a (patch)
tree735baf39393517d6bacef695380a40300025bccc /lib/debug
parent64deb85da23ff3752d21fb72d2557e70b279ca81 (diff)
downloadpakakeh.go-b913e3a4d5bff2dbc76ce5afea39d5d7ce4ced3a.tar.xz
lib/debug: realign struct profile
The realignment reduce the struct size from 32 to 24 bytes.
Diffstat (limited to 'lib/debug')
-rw-r--r--lib/debug/pprof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug/pprof.go b/lib/debug/pprof.go
index 6fffc009..28b93c1b 100644
--- a/lib/debug/pprof.go
+++ b/lib/debug/pprof.go
@@ -16,8 +16,8 @@ var prof *profile
type profile struct {
data *pprof.Profile
- path string
file *os.File
+ path string
}
func newProfile(prefix string) *profile {