mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1577650 - Stop using using namespace std
in Gecko Profiler - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D44076 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
cc6958bf73
commit
2c3f65a2cf
@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
# include <memory>
|
# include <memory>
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace baseprofiler {
|
namespace baseprofiler {
|
||||||
|
|
||||||
@ -43,7 +41,7 @@ void VTuneProfiler::Shutdown() {}
|
|||||||
|
|
||||||
void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
||||||
// TODO re-implement here if vtune is needed
|
// TODO re-implement here if vtune is needed
|
||||||
// string str(aName);
|
// std::string str(aName);
|
||||||
|
|
||||||
// auto iter = mStrings.find(str);
|
// auto iter = mStrings.find(str);
|
||||||
|
|
||||||
@ -67,7 +65,7 @@ void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
|||||||
|
|
||||||
void VTuneProfiler::RegisterThreadInternal(const char* aName) {
|
void VTuneProfiler::RegisterThreadInternal(const char* aName) {
|
||||||
// TODO re-implement here if vtune is needed
|
// TODO re-implement here if vtune is needed
|
||||||
// string str(aName);
|
// std::string str(aName);
|
||||||
|
|
||||||
// if (!str.compare("Main Thread (Base Profiler)")) {
|
// if (!str.compare("Main Thread (Base Profiler)")) {
|
||||||
// // Process main thread.
|
// // Process main thread.
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
#include "mozilla/Bootstrap.h"
|
#include "mozilla/Bootstrap.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
VTuneProfiler* VTuneProfiler::mInstance = nullptr;
|
VTuneProfiler* VTuneProfiler::mInstance = nullptr;
|
||||||
|
|
||||||
void VTuneProfiler::Initialize() {
|
void VTuneProfiler::Initialize() {
|
||||||
@ -34,7 +32,7 @@ void VTuneProfiler::Initialize() {
|
|||||||
void VTuneProfiler::Shutdown() {}
|
void VTuneProfiler::Shutdown() {}
|
||||||
|
|
||||||
void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
||||||
string str(aName);
|
std::string str(aName);
|
||||||
|
|
||||||
auto iter = mStrings.find(str);
|
auto iter = mStrings.find(str);
|
||||||
|
|
||||||
@ -56,7 +54,7 @@ void VTuneProfiler::TraceInternal(const char* aName, TracingKind aKind) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VTuneProfiler::RegisterThreadInternal(const char* aName) {
|
void VTuneProfiler::RegisterThreadInternal(const char* aName) {
|
||||||
string str(aName);
|
std::string str(aName);
|
||||||
|
|
||||||
if (!str.compare("GeckoMain")) {
|
if (!str.compare("GeckoMain")) {
|
||||||
// Process main thread.
|
// Process main thread.
|
||||||
|
Loading…
Reference in New Issue
Block a user