Title: [154968] trunk/Source/WebCore
- Revision
- 154968
- Author
- da...@apple.com
- Date
- 2013-09-02 23:02:11 -0700 (Mon, 02 Sep 2013)
Log Message
* inspector/InspectorProfilerAgent.cpp:
(WebCore::InspectorProfilerAgent::removeProfile): Fix braces here; a review
comment I forgot to address in my last check-in.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (154967 => 154968)
--- trunk/Source/WebCore/ChangeLog 2013-09-03 06:00:45 UTC (rev 154967)
+++ trunk/Source/WebCore/ChangeLog 2013-09-03 06:02:11 UTC (rev 154968)
@@ -1,5 +1,11 @@
2013-09-02 Darin Adler <da...@apple.com>
+ * inspector/InspectorProfilerAgent.cpp:
+ (WebCore::InspectorProfilerAgent::removeProfile): Fix braces here; a review
+ comment I forgot to address in my last check-in.
+
+2013-09-02 Darin Adler <da...@apple.com>
+
Cut down on double hashing and code needlessly using hash table iterators
https://bugs.webkit.org/show_bug.cgi?id=120611
Modified: trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp (154967 => 154968)
--- trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp 2013-09-03 06:00:45 UTC (rev 154967)
+++ trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp 2013-09-03 06:02:11 UTC (rev 154968)
@@ -311,11 +311,10 @@
void InspectorProfilerAgent::removeProfile(ErrorString*, const String& type, int rawUid)
{
unsigned uid = static_cast<unsigned>(rawUid);
- if (type == CPUProfileType) {
+ if (type == CPUProfileType)
m_profiles.remove(uid);
- } else if (type == HeapProfileType) {
+ else if (type == HeapProfileType)
m_snapshots.remove(uid);
- }
}
void InspectorProfilerAgent::resetState()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes