OLD | NEW |
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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 } | 539 } |
540 current_profiles_semaphore_.Signal(); | 540 current_profiles_semaphore_.Signal(); |
541 } | 541 } |
542 | 542 |
543 | 543 |
544 CodeEntry* CpuProfilesCollection::NewCodeEntry( | 544 CodeEntry* CpuProfilesCollection::NewCodeEntry( |
545 Logger::LogEventsAndTags tag, | 545 Logger::LogEventsAndTags tag, |
546 const char* name, | 546 const char* name, |
547 const char* name_prefix, | 547 const char* name_prefix, |
548 const char* resource_name, | 548 const char* resource_name, |
549 int line_number) { | 549 int line_number, |
| 550 int column_number) { |
550 CodeEntry* code_entry = new CodeEntry(tag, | 551 CodeEntry* code_entry = new CodeEntry(tag, |
551 name, | 552 name, |
552 name_prefix, | 553 name_prefix, |
553 resource_name, | 554 resource_name, |
554 line_number); | 555 line_number, |
| 556 column_number); |
555 code_entries_.Add(code_entry); | 557 code_entries_.Add(code_entry); |
556 return code_entry; | 558 return code_entry; |
557 } | 559 } |
558 | 560 |
559 | 561 |
560 const char* const ProfileGenerator::kAnonymousFunctionName = | 562 const char* const ProfileGenerator::kAnonymousFunctionName = |
561 "(anonymous function)"; | 563 "(anonymous function)"; |
562 const char* const ProfileGenerator::kProgramEntryName = | 564 const char* const ProfileGenerator::kProgramEntryName = |
563 "(program)"; | 565 "(program)"; |
564 const char* const ProfileGenerator::kIdleEntryName = | 566 const char* const ProfileGenerator::kIdleEntryName = |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 if (no_symbolized_entries) { | 656 if (no_symbolized_entries) { |
655 *entry++ = EntryForVMState(sample.state); | 657 *entry++ = EntryForVMState(sample.state); |
656 } | 658 } |
657 } | 659 } |
658 | 660 |
659 profiles_->AddPathToCurrentProfiles(entries); | 661 profiles_->AddPathToCurrentProfiles(entries); |
660 } | 662 } |
661 | 663 |
662 | 664 |
663 } } // namespace v8::internal | 665 } } // namespace v8::internal |
OLD | NEW |