mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
add skynet.stat() to get cpu cost and message count
This commit is contained in:
@@ -26,7 +26,6 @@ optint(const char *key, int opt) {
|
||||
return strtol(str, NULL, 10);
|
||||
}
|
||||
|
||||
/*
|
||||
static int
|
||||
optboolean(const char *key, int opt) {
|
||||
const char * str = skynet_getenv(key);
|
||||
@@ -36,7 +35,6 @@ optboolean(const char *key, int opt) {
|
||||
}
|
||||
return strcmp(str,"true")==0;
|
||||
}
|
||||
*/
|
||||
|
||||
static const char *
|
||||
optstring(const char *key,const char * opt) {
|
||||
@@ -137,6 +135,7 @@ main(int argc, char *argv[]) {
|
||||
config.daemon = optstring("daemon", NULL);
|
||||
config.logger = optstring("logger", NULL);
|
||||
config.logservice = optstring("logservice", "logger");
|
||||
config.profile = optboolean("profile", 1);
|
||||
|
||||
lua_close(L);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user