Adding stats to sim.out?

168 views
Skip to first unread message

asa...@ncsu.edu

unread,
Jul 21, 2021, 11:27:53 PM7/21/21
to Sniper simulator
I registered some new stats using `registerStatsMetric()`, but they don't show up in sim.out.

Is this the correct way of using this? How do I actually view the stats created.

Ajeya Naithani

unread,
Jul 22, 2021, 4:14:28 AM7/22/21
to snip...@googlegroups.com
You can see them in the dump file if you run the following command in your
results directory (where your sim.out file is):

~/sniper/tools/dumpstats.py

Regards,
Ajeya

On Thu, Jul 22, 2021 at 5:27 AM asa...@ncsu.edu <asa...@ncsu.edu> wrote:
I registered some new stats using `registerStatsMetric()`, but they don't show up in sim.out.

Is this the correct way of using this? How do I actually view the stats created.

--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snipersim/b8bc04b2-dab2-4693-b518-9fcd8f31297dn%40googlegroups.com.

Ahmed Samara

unread,
Jul 22, 2021, 9:42:16 AM7/22/21
to snip...@googlegroups.com
Thanks!



--
Ahmed Samara
PhD Student Computer Engineering

Prajakta

unread,
Jun 10, 2024, 1:45:37 AM6/10/24
to Sniper simulator
Hi, 

Can you elaborate more on how to add new stats using registerStatsMetric() function? 

I am adding a new stat "my_count" in cache_cntlr.cc file and incrementing it in the "processShmemReqFromPrevCache()" function. 
I am initializing it in the CacheCntlr class as - registerStatsMetric(name, core_id, "My count", &stats.my_count)
In cache_cntlr.h file, I am declaring it in the stats structure as UInt64 my_count

After this I am getting 'double free or corruption (out)' in simulation

Thanks,
Prajakta
 
Reply all
Reply to author
Forward
0 new messages