Ok. Json it is… With python 2.7 you can something like json.load(f, object_pairs_hook=lambda: attrdict) and you should get something similar to the pickled output.
Finally, to Andreas' point, its very small ~10kB and it's probably about three lines to get the nested dict format into a dict indexed by all names in the system. Ali On Jan 6, 2012, at 5:56 PM, Steve Reinhardt wrote: > On Fri, Jan 6, 2012 at 3:26 PM, nathan binkert <[email protected]> wrote: > >>> Ok.. The time struct was the only place where the dict isn't json >> compatible. So it can be pickle or json. Any opinions? >> >> I assume that you mean other than me. I'm a fan of the json approach >> since you can suck it in to lots of different things (and code that >> has no M5 code available). >> > > I think I missed some of this thread. > > If the downstream tools haven't been written yet, I agree w/Nate that json > is preferable, since it's language independent. > > Steve > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
