Skip to content

Conversation

@vimalk78
Copy link
Collaborator

Added pprof

image

@vimalk78 vimalk78 requested review from sthaha and vprashar2929 April 24, 2025 14:23
@codecov
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.30%. Comparing base (2ad09ba) to head (f0e976d).
Report is 7 commits behind head on reboot.

Additional details and impacted files
@@            Coverage Diff             @@
##           reboot    #2029      +/-   ##
==========================================
+ Coverage   89.78%   93.30%   +3.51%     
==========================================
  Files          17       18       +1     
  Lines         999     1031      +32     
==========================================
+ Hits          897      962      +65     
+ Misses         81       54      -27     
+ Partials       21       15       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vimalk78 vimalk78 force-pushed the add-pprof branch 4 times, most recently from 6890620 to c406f2b Compare April 24, 2025 19:25
}

func (s *APIServer) Register(endpoint, summary, description string, handler http.Handler) error {
s.logger.Debug("Endpoint Registered", "endppoint", endpoint)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

Suggested change
s.logger.Debug("Endpoint Registered", "endppoint", endpoint)
s.logger.Debug("Endpoint Registered", "endpoint", endpoint)

Comment on lines 18 to 19
var _ service.Service = &pp{}
var _ service.Initializer = &pp{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: we don't need an object to be created for this assertion

var _ service.Service = (*pp)(nil)

Log Log `yaml:"log"`
Host Host `yaml:"host"`
Dev Dev `yaml:"dev"` // WARN: do not expose dev settings as flags
EnablePprof bool `yaml:"enable-pprof"`
Copy link
Collaborator

@sthaha sthaha Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: What do you think about (separate PR / task)

debug:
  enable-pprof: true #
  collectors:  # so that we group all debugging under debug
   - go
   - process

sthaha
sthaha previously approved these changes Apr 27, 2025
Copy link
Collaborator

@sthaha sthaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need a followup for minor fixes.

@vprashar2929 vprashar2929 added the feat A new feature or enhancement label Apr 28, 2025
Signed-off-by: Vimal Kumar <[email protected]>
@vimalk78
Copy link
Collaborator Author

LGTM, need a followup for minor fixes.

pushed 2 changes, for typpo and for interface assertion

@sthaha sthaha merged commit 7d5c5ef into sustainable-computing-io:reboot Apr 28, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat A new feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants