mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-07-04 18:00:03 +00:00
The module path still read `logos-messaging-go-bindings`, mismatching the repository name. Rename it to `github.com/logos-messaging/logos-delivery-go-bindings` and update all in-repo imports. gofmt re-sorts a few import blocks as a result (plus two files that were already unformatted on master). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
39 lines
801 B
Go
39 lines
801 B
Go
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
|
|
"github.com/logos-messaging/logos-delivery-go-bindings/utils"
|
|
)
|
|
|
|
var (
|
|
testName string
|
|
iteration int
|
|
phase string
|
|
)
|
|
|
|
func main() {
|
|
flag.StringVar(&testName, "testName", "FullTestSuite", "Name of the test ")
|
|
flag.IntVar(&iteration, "iteration", 0, "Iteration number")
|
|
flag.StringVar(&phase, "phase", "", "'start' or 'end')")
|
|
flag.Parse()
|
|
|
|
var memStats runtime.MemStats
|
|
runtime.ReadMemStats(&memStats)
|
|
heapKB := memStats.HeapAlloc / 1024
|
|
|
|
rssKB, err := utils.GetRSSKB()
|
|
if err != nil {
|
|
fmt.Fprintln(os.Stderr, "Failed to get RSS:", err)
|
|
rssKB = 0
|
|
}
|
|
|
|
if err := utils.RecordMemoryMetricsCSV(testName, iteration, phase, heapKB, rssKB); err != nil {
|
|
fmt.Fprintln(os.Stderr, "Error recording metrics:", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|