lab001

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 7 Imported by: 0

README

example

先要在代码里面加上expvar,加上自己要输出的参数,然后运行程序。expvarmon另外单独运行。

注意点

  • 要是不需要输出自己的参数,就只要这样导入import _ "expvar"

expvarmon运行命令

  • expvarmon.exe -ports="1234" (要监控的端口号是1234)
  • expvarmon.exe -ports="1234" -vars="Goroutines,visits" (Goroutines,visits就是在程序中自己加的要输出的参数)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL