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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 return tree_->TicksToMillis(self_ticks_); | 260 return tree_->TicksToMillis(self_ticks_); |
261 } | 261 } |
262 | 262 |
263 | 263 |
264 double ProfileNode::GetTotalMillis() const { | 264 double ProfileNode::GetTotalMillis() const { |
265 return tree_->TicksToMillis(total_ticks_); | 265 return tree_->TicksToMillis(total_ticks_); |
266 } | 266 } |
267 | 267 |
268 | 268 |
269 void ProfileNode::Print(int indent) { | 269 void ProfileNode::Print(int indent) { |
270 OS::Print("%5u %5u %*c %s%s [%d] #%d", | 270 OS::Print("%5u %5u %*c %s%s [%d] #%d %d", |
271 total_ticks_, self_ticks_, | 271 total_ticks_, self_ticks_, |
272 indent, ' ', | 272 indent, ' ', |
273 entry_->name_prefix(), | 273 entry_->name_prefix(), |
274 entry_->name(), | 274 entry_->name(), |
275 entry_->security_token_id(), | 275 entry_->security_token_id(), |
| 276 entry_->script_id(), |
276 id()); | 277 id()); |
277 if (entry_->resource_name()[0] != '\0') | 278 if (entry_->resource_name()[0] != '\0') |
278 OS::Print(" %s:%d", entry_->resource_name(), entry_->line_number()); | 279 OS::Print(" %s:%d", entry_->resource_name(), entry_->line_number()); |
279 OS::Print("\n"); | 280 OS::Print("\n"); |
280 for (HashMap::Entry* p = children_.Start(); | 281 for (HashMap::Entry* p = children_.Start(); |
281 p != NULL; | 282 p != NULL; |
282 p = children_.Next(p)) { | 283 p = children_.Next(p)) { |
283 reinterpret_cast<ProfileNode*>(p->value)->Print(indent + 2); | 284 reinterpret_cast<ProfileNode*>(p->value)->Print(indent + 2); |
284 } | 285 } |
285 } | 286 } |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 if (no_symbolized_entries) { | 917 if (no_symbolized_entries) { |
917 *entry++ = EntryForVMState(sample.state); | 918 *entry++ = EntryForVMState(sample.state); |
918 } | 919 } |
919 } | 920 } |
920 | 921 |
921 profiles_->AddPathToCurrentProfiles(entries); | 922 profiles_->AddPathToCurrentProfiles(entries); |
922 } | 923 } |
923 | 924 |
924 | 925 |
925 } } // namespace v8::internal | 926 } } // namespace v8::internal |
OLD | NEW |