Implement transaction timings debug

Launch sway with SWAY_DEBUG=txn_timings to enable it.
This commit is contained in:
Ryan Dwyer 2018-06-25 09:09:43 +10:00
parent a3976e2659
commit 289d696adc
3 changed files with 29 additions and 0 deletions

View file

@ -113,6 +113,10 @@ bool server_init(struct sway_server *server) {
return false;
}
const char *debug = getenv("SWAY_DEBUG");
if (debug != NULL && strcmp(debug, "txn_timings") == 0) {
server->debug_txn_timings = true;
}
server->destroying_containers = create_list();
input_manager = input_manager_create(server);