Skip to content

Commit

Permalink
Fix up global variables. Normalize how we generate & use dwarf type i…
Browse files Browse the repository at this point in the history
…nfo.
  • Loading branch information
randall77 committed Nov 18, 2014
1 parent c49f14f commit fb37ef0
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 229 deletions.
7 changes: 4 additions & 3 deletions hview/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"github.com/randall77/heapdump14/read"
"html"
"log"
"net/http"
Expand All @@ -13,6 +12,8 @@ import (
"sort"
"strconv"
"text/template"

"github.com/randall77/heapdump14/read"
)

const (
Expand Down Expand Up @@ -969,7 +970,7 @@ var byType []bucket

func prepare() {
// group objects by type
fmt.Println("grouping")
fmt.Println("Grouping by type...")
byType = make([]bucket, len(d.FTList))
for i := 0; i < d.NumObjects(); i++ {
x := read.ObjId(i)
Expand All @@ -981,7 +982,7 @@ func prepare() {
}

// compute referrers
fmt.Println("computing referrers")
fmt.Println("Computing referrers...")
ref1 = make([]read.ObjId, d.NumObjects())
for i := 0; i < d.NumObjects(); i++ {
ref1[i] = read.ObjNil
Expand Down
Loading

0 comments on commit fb37ef0

Please sign in to comment.