Is there any chance we can get https://github.com/cockroachdb/cockroach/blob/7fe21a3b907aa148fcccc8ba62b9ac4db1ada50f/pkg/server/status/recorder.go#L644-L683 (and all child functions) vendored into this repo? Right now we have to copy over the code because importing github.com/cockroachdb/cockroach into our project isn't feasible. It would be great to have the same code that detects the memory usage available in this library since the testserver uses that value.
Is there any chance we can get https://github.com/cockroachdb/cockroach/blob/7fe21a3b907aa148fcccc8ba62b9ac4db1ada50f/pkg/server/status/recorder.go#L644-L683 (and all child functions) vendored into this repo? Right now we have to copy over the code because importing github.com/cockroachdb/cockroach into our project isn't feasible. It would be great to have the same code that detects the memory usage available in this library since the testserver uses that value.