/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
#include <folly/experimental/exception_tracer/ExceptionCounterLib.h>
#include <iosfwd>
#include <unordered_map>
-#include <folly/RWSpinLock.h>
#include <folly/Range.h>
#include <folly/Synchronized.h>
#include <folly/ThreadLocal.h>
#include <folly/hash/SpookyHashV2.h>
+#include <folly/synchronization/RWSpinLock.h>
#include <folly/experimental/exception_tracer/ExceptionTracerLib.h>
#include <folly/experimental/exception_tracer/StackTrace.h>
result.push_back(std::move(item.second));
}
- std::sort(result.begin(),
- result.end(),
- [](const ExceptionStats& lhs, const ExceptionStats& rhs) {
- return lhs.count > rhs.count;
- });
+ std::sort(
+ result.begin(),
+ result.end(),
+ [](const ExceptionStats& lhs, const ExceptionStats& rhs) {
+ return lhs.count > rhs.count;
+ });
return result;
}
}
struct Initializer {
- Initializer() { registerCxaThrowCallback(throwHandler); }
+ Initializer() {
+ registerCxaThrowCallback(throwHandler);
+ }
};
Initializer initializer;