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

Side by Side Diff: src/profile-generator.cc

Issue 13811043: Rename (program) to (native) in CPU profiler. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 } 862 }
863 last_wall_time_ = current_time; 863 last_wall_time_ = current_time;
864 wall_time_query_countdown_ = 864 wall_time_query_countdown_ =
865 static_cast<unsigned>(kWallTimeQueryIntervalMs * ticks_per_ms_); 865 static_cast<unsigned>(kWallTimeQueryIntervalMs * ticks_per_ms_);
866 } 866 }
867 867
868 868
869 const char* const ProfileGenerator::kAnonymousFunctionName = 869 const char* const ProfileGenerator::kAnonymousFunctionName =
870 "(anonymous function)"; 870 "(anonymous function)";
871 const char* const ProfileGenerator::kProgramEntryName = 871 const char* const ProfileGenerator::kProgramEntryName =
872 "(program)"; 872 "(native)";
873 const char* const ProfileGenerator::kGarbageCollectorEntryName = 873 const char* const ProfileGenerator::kGarbageCollectorEntryName =
874 "(garbage collector)"; 874 "(garbage collector)";
875 875
876 876
877 ProfileGenerator::ProfileGenerator(CpuProfilesCollection* profiles) 877 ProfileGenerator::ProfileGenerator(CpuProfilesCollection* profiles)
878 : profiles_(profiles), 878 : profiles_(profiles),
879 program_entry_( 879 program_entry_(
880 profiles->NewCodeEntry(Logger::FUNCTION_TAG, kProgramEntryName)), 880 profiles->NewCodeEntry(Logger::FUNCTION_TAG, kProgramEntryName)),
881 gc_entry_( 881 gc_entry_(
882 profiles->NewCodeEntry(Logger::BUILTIN_TAG, 882 profiles->NewCodeEntry(Logger::BUILTIN_TAG,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 if (no_symbolized_entries) { 930 if (no_symbolized_entries) {
931 *entry++ = EntryForVMState(sample.state); 931 *entry++ = EntryForVMState(sample.state);
932 } 932 }
933 } 933 }
934 934
935 profiles_->AddPathToCurrentProfiles(entries); 935 profiles_->AddPathToCurrentProfiles(entries);
936 } 936 }
937 937
938 938
939 } } // namespace v8::internal 939 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698