StateMachine.py (10917:c38f28fad4c3) | StateMachine.py (10919:80069a602c83) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 721 unchanged lines hidden (view full) --- 730{ 731 AbstractController::regStats(); 732 733 if (m_version == 0) { 734 for (${ident}_Event event = ${ident}_Event_FIRST; 735 event < ${ident}_Event_NUM; ++event) { 736 Stats::Vector *t = new Stats::Vector(); 737 t->init(m_num_controllers); | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 721 unchanged lines hidden (view full) --- 730{ 731 AbstractController::regStats(); 732 733 if (m_version == 0) { 734 for (${ident}_Event event = ${ident}_Event_FIRST; 735 event < ${ident}_Event_NUM; ++event) { 736 Stats::Vector *t = new Stats::Vector(); 737 t->init(m_num_controllers); |
738 t->name(g_system_ptr->name() + ".${c_ident}." + | 738 t->name(params()->ruby_system->name() + ".${c_ident}." + |
739 ${ident}_Event_to_string(event)); 740 t->flags(Stats::pdf | Stats::total | Stats::oneline | 741 Stats::nozero); 742 743 eventVec.push_back(t); 744 } 745 746 for (${ident}_State state = ${ident}_State_FIRST; 747 state < ${ident}_State_NUM; ++state) { 748 749 transVec.push_back(std::vector<Stats::Vector *>()); 750 751 for (${ident}_Event event = ${ident}_Event_FIRST; 752 event < ${ident}_Event_NUM; ++event) { 753 754 Stats::Vector *t = new Stats::Vector(); 755 t->init(m_num_controllers); | 739 ${ident}_Event_to_string(event)); 740 t->flags(Stats::pdf | Stats::total | Stats::oneline | 741 Stats::nozero); 742 743 eventVec.push_back(t); 744 } 745 746 for (${ident}_State state = ${ident}_State_FIRST; 747 state < ${ident}_State_NUM; ++state) { 748 749 transVec.push_back(std::vector<Stats::Vector *>()); 750 751 for (${ident}_Event event = ${ident}_Event_FIRST; 752 event < ${ident}_Event_NUM; ++event) { 753 754 Stats::Vector *t = new Stats::Vector(); 755 t->init(m_num_controllers); |
756 t->name(g_system_ptr->name() + ".${c_ident}." + | 756 t->name(params()->ruby_system->name() + ".${c_ident}." + |
757 ${ident}_State_to_string(state) + 758 "." + ${ident}_Event_to_string(event)); 759 760 t->flags(Stats::pdf | Stats::total | Stats::oneline | 761 Stats::nozero); 762 transVec[state].push_back(t); 763 } 764 } --- 762 unchanged lines hidden --- | 757 ${ident}_State_to_string(state) + 758 "." + ${ident}_Event_to_string(event)); 759 760 t->flags(Stats::pdf | Stats::total | Stats::oneline | 761 Stats::nozero); 762 transVec[state].push_back(t); 763 } 764 } --- 762 unchanged lines hidden --- |