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

Side by Side Diff: test/cctest/test-heap-profiler.cc

Issue 1265923002: Debugger: move implementation to a separate folder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-func-name-inference.cc ('k') | test/cctest/test-liveedit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 15 matching lines...) Expand all
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 // 27 //
28 // Tests for heap profiler 28 // Tests for heap profiler
29 29
30 #include <ctype.h> 30 #include <ctype.h>
31 31
32 #include "src/v8.h" 32 #include "src/v8.h"
33 33
34 #include "include/v8-profiler.h" 34 #include "include/v8-profiler.h"
35 #include "src/allocation-tracker.h" 35 #include "src/allocation-tracker.h"
36 #include "src/debug.h" 36 #include "src/debug/debug.h"
37 #include "src/hashmap.h" 37 #include "src/hashmap.h"
38 #include "src/heap-profiler.h" 38 #include "src/heap-profiler.h"
39 #include "test/cctest/cctest.h" 39 #include "test/cctest/cctest.h"
40 40
41 using i::AllocationTraceNode; 41 using i::AllocationTraceNode;
42 using i::AllocationTraceTree; 42 using i::AllocationTraceTree;
43 using i::AllocationTracker; 43 using i::AllocationTracker;
44 using i::HashMap; 44 using i::HashMap;
45 using i::Vector; 45 using i::Vector;
46 46
(...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 map.AddRange(ToAddress(0x180), 0x80, 6U); 2778 map.AddRange(ToAddress(0x180), 0x80, 6U);
2779 map.AddRange(ToAddress(0x180), 0x80, 7U); 2779 map.AddRange(ToAddress(0x180), 0x80, 7U);
2780 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180))); 2780 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180)));
2781 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200))); 2781 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200)));
2782 CHECK_EQ(3u, map.size()); 2782 CHECK_EQ(3u, map.size());
2783 2783
2784 map.Clear(); 2784 map.Clear();
2785 CHECK_EQ(0u, map.size()); 2785 CHECK_EQ(0u, map.size());
2786 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400))); 2786 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400)));
2787 } 2787 }
OLDNEW
« no previous file with comments | « test/cctest/test-func-name-inference.cc ('k') | test/cctest/test-liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698