Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1195)

Unified Diff: Source/core/inspector/ScriptProfile.cpp

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/ScriptProfile.h ('k') | Source/core/inspector/TraceEventDispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/ScriptProfile.cpp
diff --git a/Source/core/inspector/ScriptProfile.cpp b/Source/core/inspector/ScriptProfile.cpp
index 86c09ee6cfbf4ab5cace6e72c6bd6f5bc533b35e..27208d9574c71f09883086c9a694d71877b8f715 100644
--- a/Source/core/inspector/ScriptProfile.cpp
+++ b/Source/core/inspector/ScriptProfile.cpp
@@ -64,9 +64,9 @@ double ScriptProfile::endTime() const
return static_cast<double>(m_profile->GetEndTime()) / 1000000;
}
-static RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo> > buildInspectorObjectForPositionTicks(const v8::CpuProfileNode* node)
+static RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo>> buildInspectorObjectForPositionTicks(const v8::CpuProfileNode* node)
{
- RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo> > array = TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo>::create();
+ RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo>> array = TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo>::create();
unsigned lineCount = node->GetHitLineCount();
if (!lineCount)
return array;
@@ -88,14 +88,14 @@ static PassRefPtr<TypeBuilder::Profiler::CPUProfileNode> buildInspectorObjectFor
{
v8::HandleScope handleScope(v8::Isolate::GetCurrent());
- RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode> > children = TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>::create();
+ RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>> children = TypeBuilder::Array<TypeBuilder::Profiler::CPUProfileNode>::create();
const int childrenCount = node->GetChildrenCount();
for (int i = 0; i < childrenCount; i++) {
const v8::CpuProfileNode* child = node->GetChild(i);
children->addItem(buildInspectorObjectFor(child));
}
- RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo> > positionTicks = buildInspectorObjectForPositionTicks(node);
+ RefPtr<TypeBuilder::Array<TypeBuilder::Profiler::PositionTickInfo>> positionTicks = buildInspectorObjectForPositionTicks(node);
RefPtr<TypeBuilder::Profiler::CPUProfileNode> result = TypeBuilder::Profiler::CPUProfileNode::create()
.setFunctionName(toCoreString(node->GetFunctionName()))
@@ -117,18 +117,18 @@ PassRefPtr<TypeBuilder::Profiler::CPUProfileNode> ScriptProfile::buildInspectorO
return buildInspectorObjectFor(m_profile->GetTopDownRoot());
}
-PassRefPtr<TypeBuilder::Array<int> > ScriptProfile::buildInspectorObjectForSamples() const
+PassRefPtr<TypeBuilder::Array<int>> ScriptProfile::buildInspectorObjectForSamples() const
{
- RefPtr<TypeBuilder::Array<int> > array = TypeBuilder::Array<int>::create();
+ RefPtr<TypeBuilder::Array<int>> array = TypeBuilder::Array<int>::create();
int count = m_profile->GetSamplesCount();
for (int i = 0; i < count; i++)
array->addItem(m_profile->GetSample(i)->GetNodeId());
return array.release();
}
-PassRefPtr<TypeBuilder::Array<double> > ScriptProfile::buildInspectorObjectForTimestamps() const
+PassRefPtr<TypeBuilder::Array<double>> ScriptProfile::buildInspectorObjectForTimestamps() const
{
- RefPtr<TypeBuilder::Array<double> > array = TypeBuilder::Array<double>::create();
+ RefPtr<TypeBuilder::Array<double>> array = TypeBuilder::Array<double>::create();
int count = m_profile->GetSamplesCount();
for (int i = 0; i < count; i++)
array->addItem(m_profile->GetSampleTimestamp(i));
« no previous file with comments | « Source/core/inspector/ScriptProfile.h ('k') | Source/core/inspector/TraceEventDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698