Re: Git performance on OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 19, 2008, at 4:26 PM, Linus Torvalds wrote:
This is the WebKit archive, right?

For me, doing a "time git status ." on the WebKit thing I just cloned from git://git.webkit.org/WebKit.git is much faster: 1.264s (and it goes down
by maybe 5-10% with my lstat-avoidance patch).

Is there any system-level profiler for OS X to get a clue where that cost
is, in case it's not the lstat() at all?

If it happens on Leopard, DTrace would be a perfect way to query the system:

$ dtrace -n 'syscall::*:entry /pid==$target/ { @[probefunc] = count (); }' -c "git <do stuff>"

E.g.:

$ dtrace -n 'syscall::*:entry /pid==$target/ { @[probefunc] = count (); }' -c "echo Hello World"
dtrace: description 'syscall::*:entry ' matched 234 probes
Hello World
dtrace: pid 1325 has exited

  fstat64                                                           1
  getpid                                                            1
  getrlimit                                                         1
  ioctl                                                             1
  mmap                                                              1
  munmap                                                            1
  rexit                                                             1
  sysi86                                                            1
  setcontext                                                        2
  write                                                             2


Thanks,
Roman.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux