You can try to use m5ops in your program, resetstats, dumpstats at specific point of your program.
http://www.m5sim.org/M5ops > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of R.J. Douma > Sent: 11 June 2012 09:47 > To: [email protected] > Subject: [gem5-users] Scoped statistics > > Hi, > > I am trying to get scoped statistics out of gem5. I am not sure what I > want is availble (maybe I a just using the wrong search terms) so let > me > explain a bit. > > I have some function that I want to gather statistics about. Like > number > of cycles, number of branches, read/write hit/miss rate etc. All these > numbers seem to be available in the gem5 statistics module. However > when > I enable that module I just get data concerning the whole program. > > Now I noticed that I could reset the timer with respect to the > cyclecount. So let it perform x cycles and then start the timer etc. > But > that is not exactly what I want. > > I was thinking that maybe gem5 has some specific system calls or an API > to link to gem5 to start and stop statistics gathering from withing the > simulated program. > > Is there such a mechanism? Or any other way to get statistics of a > scoped part of a program? > > Cheers, > --Roeland > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
