sim: profile: implement --profile-file backend
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 00:26:08 +0000 (00:26 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 00:26:08 +0000 (00:26 +0000)
commit0d3d2c7158407776fb4de1f03554dc3df098e932
tree09ec73cefef13b956154d53bf2431526f3470ecb
parentcbc085687d02e45eccd1a05f6ce2068e88f2e3a8
sim: profile: implement --profile-file backend

The profile code already has options and handling for accepting a file to
write the profile output like the trace code, but it doesn't actually use
it.  At the moment, it simply opens the file at the start and closes it at
the end.  So add two new local functions the way the trace code is doing
it and have them figure out whether to write the output to stdout or the
specified file.  Then convert all existing output in the profile code to
use these helpers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/sim-profile.c
sim/common/sim-profile.h
This page took 0.024481 seconds and 4 git commands to generate.