|
@@ -97,8 +97,8 @@ func TestParse(t *testing.T) {
|
97
|
97
|
{"weblist=line[13],addresses,flat", "cpu"},
|
98
|
98
|
{"tags,tagfocus=400kb:", "heap_request"},
|
99
|
99
|
{"tags,tagfocus=+400kb:", "heap_request"},
|
100
|
|
- {"dot", "longNameFuncs"},
|
101
|
|
- {"text", "longNameFuncs"},
|
|
100
|
+ {"dot", "long_name_funcs"},
|
|
101
|
+ {"text", "long_name_funcs"},
|
102
|
102
|
}
|
103
|
103
|
|
104
|
104
|
baseVars := pprofVariables
|
|
@@ -445,7 +445,7 @@ func (testFetcher) Fetch(s string, d, t time.Duration) (*profile.Profile, string
|
445
|
445
|
p = contentionProfile()
|
446
|
446
|
case "symbolz":
|
447
|
447
|
p = symzProfile()
|
448
|
|
- case "longNameFuncs":
|
|
448
|
+ case "long_name_funcs":
|
449
|
449
|
p = longNameFuncsProfile()
|
450
|
450
|
default:
|
451
|
451
|
return nil, "", fmt.Errorf("unexpected source: %s", s)
|
|
@@ -530,8 +530,8 @@ func fakeDemangler(name string) string {
|
530
|
530
|
}
|
531
|
531
|
}
|
532
|
532
|
|
533
|
|
-// longNameFuncsProfile returns a profile with function names which should be shortened in
|
534
|
|
-// graph and flame views.
|
|
533
|
+// longNameFuncsProfile returns a profile with function names which should be
|
|
534
|
+// shortened in graph and flame views.
|
535
|
535
|
func longNameFuncsProfile() *profile.Profile {
|
536
|
536
|
var longNameFuncsM = []*profile.Mapping{
|
537
|
537
|
{
|