add emoji to status

This commit is contained in:
5ec1cff
2023-12-12 10:32:33 +08:00
parent faf074b990
commit f101ffb95f

View File

@@ -438,15 +438,15 @@ static void updateStatus() {
std::string status_text = "monitor:"; std::string status_text = "monitor:";
switch (tracing_state) { switch (tracing_state) {
case TRACING: case TRACING:
status_text += "tracing"; status_text += "😋tracing";
break; break;
case STOPPING: case STOPPING:
[[fallthrough]]; [[fallthrough]];
case STOPPED: case STOPPED:
status_text += "stopped"; status_text += "stopped";
break; break;
case EXITING: case EXITING:
status_text += "exited"; status_text += "exited";
break; break;
} }
if (tracing_state != TRACING && !monitor_stop_reason.empty()) { if (tracing_state != TRACING && !monitor_stop_reason.empty()) {
@@ -458,13 +458,13 @@ static void updateStatus() {
#define WRITE_STATUS_ABI(suffix) \ #define WRITE_STATUS_ABI(suffix) \
if (status##suffix.supported) { \ if (status##suffix.supported) { \
status_text += " zygote" #suffix ":"; \ status_text += " zygote" #suffix ":"; \
if (tracing_state != TRACING) status_text += "unknown,"; \ if (tracing_state != TRACING) status_text += "unknown,"; \
else if (status##suffix.zygote_injected) status_text += "injected,"; \ else if (status##suffix.zygote_injected) status_text += "😋injected,"; \
else status_text += "not injected,"; \ else status_text += "not injected,"; \
status_text += " daemon" #suffix ":"; \ status_text += " daemon" #suffix ":"; \
if (status##suffix.daemon_running) status_text += "running"; \ if (status##suffix.daemon_running) status_text += "😋running"; \
else { \ else { \
status_text += "crashed"; \ status_text += "crashed"; \
if (!status##suffix.daemon_crash_reason.empty()) { \ if (!status##suffix.daemon_crash_reason.empty()) { \
status_text += "("; \ status_text += "("; \
status_text += status##suffix.daemon_crash_reason; \ status_text += status##suffix.daemon_crash_reason; \