Просмотр исходного кода

Change debug files from ergonomadic -> oragono

tags/v0.10.0
Daniel Oaks 6 лет назад
Родитель
Сommit
16c4b4166a
2 измененных файлов: 4 добавлений и 2 удалений
  1. 2
    0
      .gitignore
  2. 2
    2
      irc/debug.go

+ 2
- 0
.gitignore Просмотреть файл

@@ -106,3 +106,5 @@ _testmain.go
106 106
 /oragono
107 107
 /build/*
108 108
 _test
109
+oragono.prof
110
+oragono.mprof

+ 2
- 2
irc/debug.go Просмотреть файл

@@ -43,7 +43,7 @@ func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
43 43
 		client.Notice(fmt.Sprintf("num goroutines: %d", count))
44 44
 
45 45
 	case "PROFILEHEAP":
46
-		profFile := "ergonomadic.mprof"
46
+		profFile := "oragono.mprof"
47 47
 		file, err := os.Create(profFile)
48 48
 		if err != nil {
49 49
 			client.Notice(fmt.Sprintf("error: %s", err))
@@ -54,7 +54,7 @@ func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
54 54
 		client.Notice(fmt.Sprintf("written to %s", profFile))
55 55
 
56 56
 	case "STARTCPUPROFILE":
57
-		profFile := "ergonomadic.prof"
57
+		profFile := "oragono.prof"
58 58
 		file, err := os.Create(profFile)
59 59
 		if err != nil {
60 60
 			client.Notice(fmt.Sprintf("error: %s", err))

Загрузка…
Отмена
Сохранить