Article 51HAV How measure boot time?

How measure boot time?

by
shogun1234
from LinuxQuestions.org on (#51HAV)
I only use qemu several time, so I am really newbie to qemu virtualization (but I am experience in using linux for several years). In linux, I know I can measure a command by time command. However, when I boot up an image using qemu-system-x86_64, how do I know how long qemu takes to boot the image until e.g. login screen gets display (or to boot a specific process)?

The information I find so far is https://stefano-garzarella.github.io...nux-boot-time/. But this looks like patching linux and qemu from source code. So I am curious is there any way to measure such metrics (boot time) without applying patch? For instance a flag in qemu command can be used to measure or monitor such info.

Qemu I use is version 4.1.0. Linux kernel version 5.2.0-2-amd64latest?d=yIl2AUoC8zA latest?i=903y3TlMkX4:It04KsHkYGg:F7zBnMy latest?i=903y3TlMkX4:It04KsHkYGg:V_sGLiP latest?d=qj6IDK7rITs latest?i=903y3TlMkX4:It04KsHkYGg:gIN9vFw903y3TlMkX4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments