summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralkondratenko@gmail.com <alkondratenko@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2013-07-06 20:46:50 +0000
committeralkondratenko@gmail.com <alkondratenko@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2013-07-06 20:46:50 +0000
commita833a146b7de93774f0a9428edc5eda410d9a7dc (patch)
treed5ec50023794dec97785c1e6afefc2c95f7e47fc
parent205abf1e7cb860224cbf391c7f69a6192ccc5076 (diff)
downloadgperftools-a833a146b7de93774f0a9428edc5eda410d9a7dc.tar.gz
issue-528: fixed spelling
This simply applies patch by Lajos Veres git-svn-id: http://gperftools.googlecode.com/svn/trunk@219 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rw-r--r--doc/heapprofile.html2
-rw-r--r--doc/pprof_remote_servers.html2
-rw-r--r--src/base/spinlock.cc2
-rw-r--r--src/base/sysinfo.cc2
-rw-r--r--src/base/sysinfo.h2
-rw-r--r--src/gperftools/profiler.h2
-rwxr-xr-xsrc/pprof2
-rw-r--r--src/stacktrace_x86-inl.h2
-rw-r--r--src/windows/patch_functions.cc2
-rw-r--r--src/windows/preamble_patcher.cc2
10 files changed, 10 insertions, 10 deletions
diff --git a/doc/heapprofile.html b/doc/heapprofile.html
index 67861d5..d2ff52c 100644
--- a/doc/heapprofile.html
+++ b/doc/heapprofile.html
@@ -343,7 +343,7 @@ interactive mode.</p>
<li> If the program linked in a library that was not compiled
with enough symbolic information, all samples associated
with the library may be charged to the last symbol found
- in the program before the libary. This will artificially
+ in the program before the library. This will artificially
inflate the count for that symbol.
<li> If you run the program on one machine, and profile it on
diff --git a/doc/pprof_remote_servers.html b/doc/pprof_remote_servers.html
index dd29dfb..e30e612 100644
--- a/doc/pprof_remote_servers.html
+++ b/doc/pprof_remote_servers.html
@@ -168,7 +168,7 @@ change it if you'd like.</p>
This is similar to pprof, but is meant to be used with your CPU's hardware
performance counters. The server could be implemented on top of a library
such as <a href="http://perfmon2.sourceforge.net/">
-<code>libpfm</code></a>. It should collect a sample every nnn occurences
+<code>libpfm</code></a>. It should collect a sample every nnn occurrences
of the event and stop the sampling after xxx seconds. Much of the code
for <code>/pprof/profile</code> can be reused for this purpose.
</p>
diff --git a/src/base/spinlock.cc b/src/base/spinlock.cc
index 1413923..8612886 100644
--- a/src/base/spinlock.cc
+++ b/src/base/spinlock.cc
@@ -117,7 +117,7 @@ void SpinLock::SlowLock() {
// the last lock_value observed.
lock_value = kSpinLockSleeper;
} else if (lock_value == kSpinLockFree) {
- // Lock is free again, so try and aquire it before sleeping. The
+ // Lock is free again, so try and acquire it before sleeping. The
// new lock state will be the number of cycles this thread waited if
// this thread obtains the lock.
lock_value = base::subtle::Acquire_CompareAndSwap(&lockword_,
diff --git a/src/base/sysinfo.cc b/src/base/sysinfo.cc
index 9790c36..4b413a9 100644
--- a/src/base/sysinfo.cc
+++ b/src/base/sysinfo.cc
@@ -500,7 +500,7 @@ int NumCPUs(void) {
// ----------------------------------------------------------------------
// HasPosixThreads()
// Return true if we're running POSIX (e.g., NPTL on Linux)
-// threads, as opposed to a non-POSIX thread libary. The thing
+// threads, as opposed to a non-POSIX thread library. The thing
// that we care about is whether a thread's pid is the same as
// the thread that spawned it. If so, this function returns
// true.
diff --git a/src/base/sysinfo.h b/src/base/sysinfo.h
index 247c906..5b8cf81 100644
--- a/src/base/sysinfo.h
+++ b/src/base/sysinfo.h
@@ -78,7 +78,7 @@ extern double CyclesPerSecond(void);
// Return true if we're running POSIX (e.g., NPTL on Linux) threads,
-// as opposed to a non-POSIX thread libary. The thing that we care
+// as opposed to a non-POSIX thread library. The thing that we care
// about is whether a thread's pid is the same as the thread that
// spawned it. If so, this function returns true.
// Thread-safe.
diff --git a/src/gperftools/profiler.h b/src/gperftools/profiler.h
index 7971e04..d38a3d3 100644
--- a/src/gperftools/profiler.h
+++ b/src/gperftools/profiler.h
@@ -123,7 +123,7 @@ PERFTOOLS_DLL_DECL int ProfilerStart(const char* fname);
*
* 'options' may be NULL, in which case all are given default values.
*
- * Returns nonzero if profiling was started sucessfully, or zero else.
+ * Returns nonzero if profiling was started successfully, or zero else.
*/
PERFTOOLS_DLL_DECL int ProfilerStartWithOptions(
const char *fname, const struct ProfilerOptions *options);
diff --git a/src/pprof b/src/pprof
index 961c8bd..17db1eb 100755
--- a/src/pprof
+++ b/src/pprof
@@ -5061,7 +5061,7 @@ sub GetProcedureBoundaries {
# "nm -f $image" is supposed to fail on GNU nm, but if:
#
# a. $image starts with [BbSsPp] (for example, bin/foo/bar), AND
- # b. you have a.out in your current directory (a not uncommon occurence)
+ # b. you have a.out in your current directory (a not uncommon occurrence)
#
# then "nm -f $image" succeeds because -f only looks at the first letter of
# the argument, which looks valid because it's [BbSsPp], and then since
diff --git a/src/stacktrace_x86-inl.h b/src/stacktrace_x86-inl.h
index 9d76342..6695cf8 100644
--- a/src/stacktrace_x86-inl.h
+++ b/src/stacktrace_x86-inl.h
@@ -68,7 +68,7 @@ typedef ucontext ucontext_t;
#if defined(__linux__) && defined(__i386__) && defined(__ELF__) && defined(HAVE_MMAP)
// Count "push %reg" instructions in VDSO __kernel_vsyscall(),
-// preceeding "syscall" or "sysenter".
+// preceding "syscall" or "sysenter".
// If __kernel_vsyscall uses frame pointer, answer 0.
//
// kMaxBytes tells how many instruction bytes of __kernel_vsyscall
diff --git a/src/windows/patch_functions.cc b/src/windows/patch_functions.cc
index b1f635c..2b1923e 100644
--- a/src/windows/patch_functions.cc
+++ b/src/windows/patch_functions.cc
@@ -239,7 +239,7 @@ class LibcInfo {
// given module, these three go together. And in fact,
// Perftools_malloc_ may need to call origstub_malloc_, which means we
// either need to change Perftools_malloc_ to take origstub_malloc_ as
-// an arugment -- unfortunately impossible since it needs to keep the
+// an argument -- unfortunately impossible since it needs to keep the
// same API as normal malloc -- or we need to write a different
// version of Perftools_malloc_ for each LibcInfo instance we create.
// We choose the second route, and use templates to implement it (we
diff --git a/src/windows/preamble_patcher.cc b/src/windows/preamble_patcher.cc
index 59624f0..4fda248 100644
--- a/src/windows/preamble_patcher.cc
+++ b/src/windows/preamble_patcher.cc
@@ -349,7 +349,7 @@ SideStepError PreamblePatcher::Unpatch(void* target_function,
// Disassemble the preamble of stub and copy the bytes back to target.
// If we've done any conditional jumps in the preamble we need to convert
- // them back to the orignal REL8 jumps in the target.
+ // them back to the original REL8 jumps in the target.
MiniDisassembler disassembler;
unsigned int preamble_bytes = 0;
unsigned int target_bytes = 0;