diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/localconsts.h | 4 | ||||
-rw-r--r-- | src/utils/performance.cpp (renamed from src/utils/perfomance.cpp) | 6 | ||||
-rw-r--r-- | src/utils/performance.h (renamed from src/utils/perfomance.h) | 20 |
4 files changed, 17 insertions, 17 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 418503b78..5b50a3ed7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -643,8 +643,8 @@ BASE_SRC += client.h \ utils/parameters.h \ fs/paths.cpp \ fs/paths.h \ - utils/perfomance.cpp \ - utils/perfomance.h \ + utils/performance.cpp \ + utils/performance.h \ utils/perfstat.cpp \ utils/perfstat.h \ utils/pnglib.cpp \ diff --git a/src/localconsts.h b/src/localconsts.h index 63a015cb5..ad0744246 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -396,8 +396,8 @@ PRAGMA45(GCC diagnostic pop) #ifdef DYECMD #undef USE_FUZZER #endif // DYECMD -#include "utils/perfomance.h" -UTILS_PERFOMANCE_H // guard for protect previous include +#include "utils/performance.h" +UTILS_PERFORMANCE_H // guard for protect previous include #ifdef HAVE_CONFIG_H #include "config.h" #endif // HAVE_CONFIG_H diff --git a/src/utils/perfomance.cpp b/src/utils/performance.cpp index 3633041a3..ccc232aa4 100644 --- a/src/utils/perfomance.cpp +++ b/src/utils/performance.cpp @@ -23,7 +23,7 @@ #ifdef USE_PROFILER -#include "utils/perfomance.h" +#include "utils/performance.h" #include "configuration.h" #include "game.h" @@ -44,7 +44,7 @@ static const clockid_t clockType = CLOCK_MONOTONIC; #define timeData ((static_cast<long long int>(time.tv_sec) * 1000000000LL \ + static_cast<long long int>(time.tv_nsec)) / 1) -namespace Perfomance +namespace Performance { std::ofstream file; std::string temp; @@ -96,6 +96,6 @@ namespace Perfomance temp.clear(); // file.flush(); } -} // namespace Perfomance +} // namespace Performance #endif // USE_PROFILER diff --git a/src/utils/perfomance.h b/src/utils/performance.h index 5da4756ee..992372e94 100644 --- a/src/utils/perfomance.h +++ b/src/utils/performance.h @@ -19,8 +19,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef UTILS_PERFOMANCE_H -#define UTILS_PERFOMANCE_H +#ifndef UTILS_PERFORMANCE_H +#define UTILS_PERFORMANCE_H #ifdef USE_PROFILER #include "utils/vector.h" @@ -32,13 +32,13 @@ #include "localconsts.h" -#define PROFILER_START() Perfomance::start(); -#define PROFILER_END() Perfomance::flush(); -#define BLOCK_START(name) Perfomance::blockStart(name); -#define BLOCK_END(name) Perfomance::blockEnd(name); -#define FUNC_BLOCK(name, id) Perfomance::Func PerfomanceFunc##id(name); +#define PROFILER_START() Performance::start(); +#define PROFILER_END() Performance::flush(); +#define BLOCK_START(name) Performance::blockStart(name); +#define BLOCK_END(name) Performance::blockEnd(name); +#define FUNC_BLOCK(name, id) Performance::Func PerformanceFunc##id(name); -namespace Perfomance +namespace Performance { void start(); @@ -70,7 +70,7 @@ namespace Perfomance std::string name; }; -} // namespace Perfomance +} // namespace Performance #else // USE_PROFILER @@ -81,4 +81,4 @@ namespace Perfomance #define FUNC_BLOCK(name, id) #endif // USE_PROFILER -#endif // UTILS_PERFOMANCE_H +#endif // UTILS_PERFORMANCE_H |