diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-10 20:45:34 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-11 02:16:52 +0700 |
| commit | b913e3a4d5bff2dbc76ce5afea39d5d7ce4ced3a (patch) | |
| tree | 735baf39393517d6bacef695380a40300025bccc /lib/debug | |
| parent | 64deb85da23ff3752d21fb72d2557e70b279ca81 (diff) | |
| download | pakakeh.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.go | 2 |
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 { |
