Review Board 2.0.15


stats: Method stats source

Review Request #2241 - Created April 23, 2014 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10193:ae6a0ea78f4f
---------------------------
stats: Method stats source

This source for stats binds an object and a method / function from the object
to a stats object. This allows pulling out stats from object methods without
needing to go through a global, or static shim.

Syntax is somewhat unpleasant, but the templates and method pointer type
specification were quite tricky.  Interface is very clean though; and similar
to .functor

   
Review request changed
Updated (May 9, 2014, 3:57 p.m.)

Status: Closed (submitted)