This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] MI: new timing command
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 20 Jan 2007 19:27:48 +0200
- Subject: Re: [PATCH] MI: new timing command
- References: <17814.10139.269708.848818@kahikatea.snap.net.nz> <u8xgp2wnm.fsf@gnu.org> <17814.58031.865155.682869@kahikatea.snap.net.nz> <umz541yqg.fsf@gnu.org> <20061231042547.GA3236@nevyn.them.org> <17815.18190.987950.612053@kahikatea.snap.net.nz> <20061231054946.GA4873@nevyn.them.org> <17815.27092.497145.908734@kahikatea.snap.net.nz> <20061231151527.GC16449@nevyn.them.org> <200612311524.kBVFObud010411@brahms.sibelius.xs4all.nl> <E1H12lf-0002Zf-GT@zigzag.lvk.cs.msu.su> <200612311609.kBVG9Fgh022431@brahms.sibelius.xs4all.nl> <17816.34925.514170.51734@farnswood.snap.net.nz> <E1H1GB1-0000Da-7F@fencepost.gnu.org> <17817.34304.221915.628057@kahikatea.snap.net.nz> <u1wmecb5c.fsf@gnu.org> <17836.26941.915573.399839@kahikatea.snap.net.nz>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Nick Roberts <nickrob@snap.net.nz>
> Date: Tue, 16 Jan 2007 18:57:17 +1300
> Cc: mark.kettenis@xs4all.nl, ghost@cs.msu.su,
> gdb-patches@sources.redhat.com
>
> > > OK, this patch gives wallclock, user and system time in the output.
> > > In the case when getrusage is not available it the output of get_run_time
> > > is used for the wallclock field and user and system time are given as 0.0.
> >
> > Thanks.
> >
> > > Can you please test it for this latter case?
> >
> > Will do, but it could take me a few days before I have enough free
> > time to try the patch.
>
> Any progress?
I tried, but unfortunately, I cannot compile the patched version. It
seems like at least one part of your patch was never sent to the list:
* mi/mi-parse.h: Include <sys/resource.h> if present.
(mi_timestamp): New structure.
(mi_parse): Add mi_timestamp* member.
Without this, mi-main.c doesn't compile, because it misses the
definition of the mi_timestamp structure.