forked from matrixorigin/matrixone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impove trace mem usage in Debug api (matrixorigin#11648)
modification: reduce `context.Context` allocation in `trace.Debug` improvment: - mem cost reduced from 200+MB to a few Bytes. Test by benchmark: `BenchmarkWithoutConflict` test cmd: ``` cd .../matrixone/pkg/lockservice go test -test.bench BenchmarkWithoutConflict -test.run ^$ -test.benchtime 1s -test.memprofile ..../alloc.pprof ``` - improved pprof (alloc) [improved_alloc.profile.pb.gz](https://github.com/matrixorigin/matrixone/files/12523543/improved_alloc.profile.pb.gz) ![image](https://github.com/matrixorigin/matrixone/assets/3927687/ec4b1d49-a730-4572-b49a-7b3b0e1b9aee) - origin pprof (alloc) [alloc.profile.pb.gz](https://github.com/matrixorigin/matrixone/files/12523525/alloc.profile.pb.gz) ![image](https://github.com/matrixorigin/matrixone/assets/3927687/26247882-de89-47a9-8273-3f1850c00a25) Approved by: @zhangxu19830126
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters