public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Aktemur, Tankut Baris" <tankut.baris.aktemur@intel.com>
To: mx <mxmxmx0429@qq.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: How to test speed of a gdbserver?
Date: Mon, 22 Feb 2021 11:00:50 +0000	[thread overview]
Message-ID: <SN6PR11MB289373FA77A43CD72BFFF8E8C4819@SN6PR11MB2893.namprd11.prod.outlook.com> (raw)
In-Reply-To: <tencent_A532B63F8E2517B0C6373B2571D78D552106@qq.com>

> -----Original Message-----
> From: Gdb <gdb-bounces@sourceware.org> On Behalf Of mx via Gdb
> Sent: Monday, February 22, 2021 11:47 AM
> 
> I want to test my debugger speed. I know gdb will present the speed of downloading. Is there
> a way to test the speed of reading memory or registers?

Hi,

The "maintenance time" command might be helpful.

(gdb) help maintenance time
Set the display of time usage.
If nonzero, will cause the execution time for each command to be
displayed, following the command's output. 
(gdb) maintenance time 1
(gdb) print "12345"
2021-02-22 11:57:15.336 - command started
$1 = "12345"
2021-02-22 11:57:15.337 - command finished
Command execution time: 0.000734 (cpu), 0.000726 (wall)
(gdb)


-Baris


Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

  reply	other threads:[~2021-02-22 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 10:46 mx
2021-02-22 11:00 ` Aktemur, Tankut Baris [this message]
2021-02-22 11:33   ` mx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR11MB289373FA77A43CD72BFFF8E8C4819@SN6PR11MB2893.namprd11.prod.outlook.com \
    --to=tankut.baris.aktemur@intel.com \
    --cc=gdb@sourceware.org \
    --cc=mxmxmx0429@qq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).