Thread (29 messages) flat view 29 messages, 7 authors, 2016-08-11

Re: Git performance on OS X

From: Roman Shaposhnik <hidden>
Date: 2016-06-15 22:44:30

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help