From cce8431484620ce30ec27530358938933b6f08bf Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Thu, 4 Oct 2018 13:10:42 +0300 Subject: [PATCH] Gramma fix #133 --- easy_profiler_core/event_trace_win.cpp | 4 ++-- easy_profiler_core/include/easy/profiler.h | 6 +++--- profiler_gui/main_window.cpp | 2 +- scripts/make_style.sh | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/easy_profiler_core/event_trace_win.cpp b/easy_profiler_core/event_trace_win.cpp index 69b1dc3..d827a8e 100644 --- a/easy_profiler_core/event_trace_win.cpp +++ b/easy_profiler_core/event_trace_win.cpp @@ -382,7 +382,7 @@ bool setPrivilege(HANDLE hToken, PTCHAR _privelegeName) EASY_LOG_ONLY( if (!success) - EASY_WARNING("Failed to set " << _privelegeName << " privelege for the application.\n"); + EASY_WARNING("Failed to set " << _privelegeName << " privilege for the application.\n"); ) return success; @@ -411,7 +411,7 @@ void EasyEventTracer::setProcessPrivileges() } EASY_LOG_ONLY( else { - EASY_WARNING("Failed to open process to adjust priveleges.\n"); + EASY_WARNING("Failed to open process to adjust privileges.\n"); } ) } diff --git a/easy_profiler_core/include/easy/profiler.h b/easy_profiler_core/include/easy/profiler.h index b9f7b57..761c181 100644 --- a/easy_profiler_core/include/easy/profiler.h +++ b/easy_profiler_core/include/easy/profiler.h @@ -207,7 +207,7 @@ int foo() Event marker is a block with zero duration and special type. -\warning Event marker ends immidiately and calling EASY_END_BLOCK after EASY_EVENT +\warning Event marker ends immediately and calling EASY_END_BLOCK after EASY_EVENT will end previously opened EASY_BLOCK or EASY_FUNCTION. \ingroup profiler @@ -370,7 +370,7 @@ Otherwise, no log messages will be printed. # define EASY_OPTION_LOG_ENABLED 0 # endif -/** If != 0 then EasyProfiler will start listening thread immidiately on ProfileManager initialization. +/** If != 0 then EasyProfiler will start listening thread immediately on ProfileManager initialization. \sa startListen @@ -576,7 +576,7 @@ namespace profiler { \note This also disables profiler. - \retval Number of saved blocks. If 0 then nothing was profiled or an error occured. + \retval Number of saved blocks. If 0 then nothing was profiled or an error occurred. \ingroup profiler */ diff --git a/profiler_gui/main_window.cpp b/profiler_gui/main_window.cpp index 856fa98..cd6c42d 100644 --- a/profiler_gui/main_window.cpp +++ b/profiler_gui/main_window.cpp @@ -3221,7 +3221,7 @@ void SocketListener::listenCapture() const auto dt = std::chrono::duration_cast(std::chrono::system_clock::now() - timeBegin); const auto bytesNumber = m_receivedData.str().size(); - qInfo() << "recieved " << bytesNumber << " bytes, " << dt.count() << " ms, average speed = " << double(bytesNumber) * 1e3 / double(dt.count()) / 1024. << " kBytes/sec"; + qInfo() << "received " << bytesNumber << " bytes, " << dt.count() << " ms, average speed = " << double(bytesNumber) * 1e3 / double(dt.count()) / 1024. << " kBytes/sec"; seek = 0; bytes = 0; diff --git a/scripts/make_style.sh b/scripts/make_style.sh index 6646ccd..49a5443 100755 --- a/scripts/make_style.sh +++ b/scripts/make_style.sh @@ -1,5 +1,5 @@ if [ "$#" -ne 1 ]; then - echo -e "Usage: \n$0 DIRECTORY\n\twhere DIRECTORY is a derectory with sources for styling" + echo -e "Usage: \n$0 DIRECTORY\n\twhere DIRECTORY is a directory with sources for styling" exit 1 fi