Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Dec 9, 2024
1 parent bd0c18e commit 0b90d55
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tools/matchingsimulationcomparison/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ package main
import (
"bytes"
"encoding/csv"
"encoding/json"
"flag"
"fmt"
"log"
Expand All @@ -36,8 +35,6 @@ import (
"sort"
"strings"
"time"

"github.com/uber/cadence/service/matching/event"
)

var (
Expand Down Expand Up @@ -110,8 +107,6 @@ func mustGenerateReports(root string, scenarios []string, ts string) {

summaryFile := scenarioSummaryFile(root, scenario, ts)
csvData[scenario] = mustParseSummaryFile(summaryFile, scenario)

mustGenerateGraphs(root, scenario, ts)
}

if len(missingScenarios) == len(scenarios) {
Expand Down Expand Up @@ -145,25 +140,6 @@ func mustGenerateReports(root string, scenarios []string, ts string) {
fmt.Printf("Comparison CSV generated at: %s\n", outputFile)
}

func mustGenerateGraphs(root, scenario, ts string) {
eventFile := scenarioRawEventsFile(root, scenario, ts)
reader, err := os.Open(eventFile)
if err != nil {
log.Fatalf("Could not open event file %s, err: %v", eventFile, err)
}
defer reader.Close()

d := json.NewDecoder(reader)
for d.More() {
var e event.E
if err := d.Decode(&e); err != nil {
log.Fatalf("Could not decode event from file %s, err: %v", eventFile, err)
}

// TODO: use echarts to grab stuff from events and generate html
}
}

func csvFilePath(root string) string {
return path.Join(root, outputFolder, "comparison.csv")
}
Expand Down

0 comments on commit 0b90d55

Please sign in to comment.