Bug 1332577 (part 5) - Fix indentation in platform.cpp. r=mstange.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 20 Jan 2017 14:20:11 +1100
changeset 375514 03d2b4964c1604f1331733f79b78ef532afc452d
parent 375513 5601e95a30ff9d8bcbb66bcc6554c2a9fc03fde5
child 375515 6f893e5c9e874300e4bc5523e821e8b3948bb80d
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1332577
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1332577 (part 5) - Fix indentation in platform.cpp. r=mstange. The patch fixes some 4 space indents and tab indents.
tools/profiler/core/platform.cpp
--- a/tools/profiler/core/platform.cpp
+++ b/tools/profiler/core/platform.cpp
@@ -634,27 +634,27 @@ void mozilla_sampler_get_profile_data_as
   if (NS_WARN_IF(!t)) {
     return;
   }
 
   t->ToJSObjectAsync(aSinceTime, aPromise);
 }
 
 void mozilla_sampler_save_profile_to_file_async(double aSinceTime,
-						const char* aFileName)
+                                                const char* aFileName)
 {
   nsCString filename(aFileName);
   NS_DispatchToMainThread(NS_NewRunnableFunction([=] () {
-	GeckoSampler *t = tlsTicker.get();
-	if (NS_WARN_IF(!t)) {
-	  return;
-	}
+    GeckoSampler *t = tlsTicker.get();
+    if (NS_WARN_IF(!t)) {
+      return;
+    }
 
-	t->ToFileAsync(filename, aSinceTime);
-      }));
+    t->ToFileAsync(filename, aSinceTime);
+  }));
 }
 
 void mozilla_sampler_get_profiler_start_params(int* aEntrySize,
                                                double* aInterval,
                                                mozilla::Vector<const char*>* aFilters,
                                                mozilla::Vector<const char*>* aFeatures)
 {
   if (NS_WARN_IF(!aEntrySize) || NS_WARN_IF(!aInterval) ||
@@ -812,36 +812,36 @@ void mozilla_sampler_start(int aProfileE
   t = new GeckoSampler(aInterval ? aInterval : PROFILE_DEFAULT_INTERVAL,
                       aProfileEntries ? aProfileEntries : PROFILE_DEFAULT_ENTRY,
                       aFeatures, aFeatureCount,
                       aThreadNameFilters, aFilterCount);
 
   tlsTicker.set(t);
   t->Start();
   if (t->ProfileJS() || t->InPrivacyMode()) {
-      ::MutexAutoLock lock(*Sampler::sRegisteredThreadsMutex);
-      const std::vector<ThreadInfo*>& threads = t->GetRegisteredThreads();
+    ::MutexAutoLock lock(*Sampler::sRegisteredThreadsMutex);
+    const std::vector<ThreadInfo*>& threads = t->GetRegisteredThreads();
 
-      for (uint32_t i = 0; i < threads.size(); i++) {
-        ThreadInfo* info = threads[i];
-        if (info->IsPendingDelete()) {
-          continue;
-        }
-        ThreadProfile* thread_profile = info->Profile();
-        if (!thread_profile) {
-          continue;
-        }
-        thread_profile->GetPseudoStack()->reinitializeOnResume();
-        if (t->ProfileJS()) {
-          thread_profile->GetPseudoStack()->enableJSSampling();
-        }
-        if (t->InPrivacyMode()) {
-          thread_profile->GetPseudoStack()->mPrivacyMode = true;
-        }
+    for (uint32_t i = 0; i < threads.size(); i++) {
+      ThreadInfo* info = threads[i];
+      if (info->IsPendingDelete()) {
+        continue;
+      }
+      ThreadProfile* thread_profile = info->Profile();
+      if (!thread_profile) {
+        continue;
       }
+      thread_profile->GetPseudoStack()->reinitializeOnResume();
+      if (t->ProfileJS()) {
+        thread_profile->GetPseudoStack()->enableJSSampling();
+      }
+      if (t->InPrivacyMode()) {
+        thread_profile->GetPseudoStack()->mPrivacyMode = true;
+      }
+    }
   }
 
 #if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK)
   if (t->ProfileJava()) {
     int javaInterval = aInterval;
     // Java sampling doesn't accuratly keep up with 1ms sampling
     if (javaInterval < 10) {
       aInterval = 10;
@@ -1056,37 +1056,37 @@ void mozilla_sampler_unregister_thread()
   }
   stack->deref();
   tlsPseudoStack.set(nullptr);
 
   Sampler::UnregisterCurrentThread();
 }
 
 void mozilla_sampler_sleep_start() {
-    if (sInitCount == 0) {
-	return;
-    }
+  if (sInitCount == 0) {
+    return;
+  }
 
-    PseudoStack *stack = tlsPseudoStack.get();
-    if (stack == nullptr) {
-      return;
-    }
-    stack->setSleeping(1);
+  PseudoStack *stack = tlsPseudoStack.get();
+  if (stack == nullptr) {
+    return;
+  }
+  stack->setSleeping(1);
 }
 
 void mozilla_sampler_sleep_end() {
-    if (sInitCount == 0) {
-	return;
-    }
+  if (sInitCount == 0) {
+    return;
+  }
 
-    PseudoStack *stack = tlsPseudoStack.get();
-    if (stack == nullptr) {
-      return;
-    }
-    stack->setSleeping(0);
+  PseudoStack *stack = tlsPseudoStack.get();
+  if (stack == nullptr) {
+    return;
+  }
+  stack->setSleeping(0);
 }
 
 bool mozilla_sampler_is_sleeping() {
   if (sInitCount == 0) {
     return false;
   }
   PseudoStack *stack = tlsPseudoStack.get();
   if (stack == nullptr) {