diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 21:16:44 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 21:16:44 +0300 |
commit | b8f2dcea4de03b21f353240935a3295f237f258f (patch) | |
tree | 5473861e52a96d1cf93b7d598b97bbe2b28e8fc8 /src/game.cpp | |
parent | 07d000cc54c26001f9f79e5c0d45c2d3c4f614eb (diff) | |
download | minetest-b8f2dcea4de03b21f353240935a3295f237f258f.tar.gz minetest-b8f2dcea4de03b21f353240935a3295f237f258f.tar.bz2 minetest-b8f2dcea4de03b21f353240935a3295f237f258f.zip |
Improve debug profiler usage for investigating CPU usage of server
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index c415db1e3..276857f80 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1070,6 +1070,8 @@ void the_game( object_hit_delay_timer -= dtime; + g_profiler->add("Elapsed time", dtime * 1000); + /* Log frametime for visualization */ |