<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trace.c, branch v2.3.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-01-09T23:33:39Z</updated>
<entry>
<title>configure.ac: check for clock_gettime and CLOCK_MONOTONIC</title>
<updated>2015-01-09T23:33:39Z</updated>
<author>
<name>Reuben Hawkins</name>
<email>reubenhwk@gmail.com</email>
</author>
<published>2015-01-08T20:00:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6c3c638acea34116c6be7cc4be41a9bc55a7fa1'/>
<id>urn:sha1:a6c3c638acea34116c6be7cc4be41a9bc55a7fa1</id>
<content type='text'>
Set or clear Makefile variables HAVE_CLOCK_GETTIME and
HAVE_CLOCK_MONOTONIC based upon results of the checks (overriding
default values from config.mak.uname).

CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3
systems being used in production.

Signed-off-by: Reuben Hawkins &lt;reubenhwk@gmail.com&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/use-strbuf-complete-line'</title>
<updated>2014-12-22T20:28:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-12-22T20:28:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a305b15f82984bd000351e5ab4720a4a170e42b0'/>
<id>urn:sha1:a305b15f82984bd000351e5ab4720a4a170e42b0</id>
<content type='text'>
* rs/use-strbuf-complete-line:
  use strbuf_complete_line() for adding a newline if needed
</content>
</entry>
<entry>
<title>use strbuf_complete_line() for adding a newline if needed</title>
<updated>2014-12-12T19:23:45Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-12-12T19:16:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0d4923ddfb65c91d2b84ca74eee09424f986a8b'/>
<id>urn:sha1:a0d4923ddfb65c91d2b84ca74eee09424f986a8b</id>
<content type='text'>
Call strbuf_complete_line() instead of open-coding it.  Also remove
surrounding comments indicating the intent to complete a line since
this information is already included in the function name.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bw/trace-no-inline-getnanotime'</title>
<updated>2014-10-16T21:16:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-16T21:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c11dc64722fc0bb496efb1b6de87012a132c04fc'/>
<id>urn:sha1:c11dc64722fc0bb496efb1b6de87012a132c04fc</id>
<content type='text'>
No file-scope static variables in an inlined function, please.

* bw/trace-no-inline-getnanotime:
  trace.c: do not mark getnanotime() as "inline"
</content>
</entry>
<entry>
<title>trace.c: do not mark getnanotime() as "inline"</title>
<updated>2014-09-29T23:13:58Z</updated>
<author>
<name>Ben Walton</name>
<email>bdwalton@gmail.com</email>
</author>
<published>2014-09-28T07:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6433d569753e8d33d3f7beca16a65f2fc481aade'/>
<id>urn:sha1:6433d569753e8d33d3f7beca16a65f2fc481aade</id>
<content type='text'>
Oracle Studio compilers don't allow for static variables in
functions that are defined to be inline. GNU C does permit this.

Let's reference the C99 standard though, which doesn't allow for
inline functions to contain modifiable static variables.

Signed-off-by: Ben Walton &lt;bdwalton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kb/perf-trace'</title>
<updated>2014-09-19T18:38:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-19T18:38:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ee9c9d068d841908c7022aad566096be8a439a9'/>
<id>urn:sha1:9ee9c9d068d841908c7022aad566096be8a439a9</id>
<content type='text'>
Compilation fix for some compilers.

* kb/perf-trace:
  trace: correct trace_strbuf() parameter type for !HAVE_VARIADIC_MACROS
</content>
</entry>
<entry>
<title>trace: correct trace_strbuf() parameter type for !HAVE_VARIADIC_MACROS</title>
<updated>2014-09-08T18:08:04Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-09-06T20:53:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=792a646a194deb146de72022cf92882fe2fde8b9'/>
<id>urn:sha1:792a646a194deb146de72022cf92882fe2fde8b9</id>
<content type='text'>
Reported-by: dev &lt;dev@cor0.com&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/strbuf-getcwd'</title>
<updated>2014-09-02T20:28:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-02T20:27:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f655651e09b9fa7bf8ff13f1b4a5b16c7956e4cf'/>
<id>urn:sha1:f655651e09b9fa7bf8ff13f1b4a5b16c7956e4cf</id>
<content type='text'>
Reduce the use of fixed sized buffer passed to getcwd() calls
by introducing xgetcwd() helper.

* rs/strbuf-getcwd:
  use strbuf_add_absolute_path() to add absolute paths
  abspath: convert absolute_path() to strbuf
  use xgetcwd() to set $GIT_DIR
  use xgetcwd() to get the current directory or die
  wrapper: add xgetcwd()
  abspath: convert real_path_internal() to strbuf
  abspath: use strbuf_getcwd() to remember original working directory
  setup: convert setup_git_directory_gently_1 et al. to strbuf
  unix-sockets: use strbuf_getcwd()
  strbuf: add strbuf_getcwd()
</content>
</entry>
<entry>
<title>use xgetcwd() to get the current directory or die</title>
<updated>2014-08-26T18:06:06Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-07-28T18:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=56b9f6e738af6f5238f57a29e96103cf61e3f8cd'/>
<id>urn:sha1:56b9f6e738af6f5238f57a29e96103cf61e3f8cd</id>
<content type='text'>
Convert several calls of getcwd() and die() to use xgetcwd() instead.
This way we get rid of fixed-size buffers (which can be too small
depending on the used file system) and gain consistent error messages.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git: add performance tracing for git's main() function to debug scripts</title>
<updated>2014-07-14T04:25:21Z</updated>
<author>
<name>Karsten Blees</name>
<email>karsten.blees@gmail.com</email>
</author>
<published>2014-07-12T00:07:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=578da0391a7958510b960eaf1ef30d13e791554e'/>
<id>urn:sha1:578da0391a7958510b960eaf1ef30d13e791554e</id>
<content type='text'>
Use trace_performance to measure and print execution time and command line
arguments of the entire main() function. In constrast to the shell's 'time'
utility, which measures total time of the parent process, this logs all
involved git commands recursively. This is particularly useful to debug
performance issues of scripted commands (i.e. which git commands were
called with which parameters, and how long did they execute).

Due to git's deliberate use of exit(), the implementation uses an atexit
routine rather than just adding trace_performance_since() at the end of
main().

Usage example: &gt; GIT_TRACE_PERFORMANCE=~/git-trace.log git stash list

Creates a log file like this:
23:57:38.638765 trace.c:405 performance: 0.000310107 s: git command: 'git' 'rev-parse' '--git-dir'
23:57:38.644387 trace.c:405 performance: 0.000261759 s: git command: 'git' 'rev-parse' '--show-toplevel'
23:57:38.646207 trace.c:405 performance: 0.000304468 s: git command: 'git' 'config' '--get-colorbool' 'color.interactive'
23:57:38.648491 trace.c:405 performance: 0.000241667 s: git command: 'git' 'config' '--get-color' 'color.interactive.help' 'red bold'
23:57:38.650465 trace.c:405 performance: 0.000243063 s: git command: 'git' 'config' '--get-color' '' 'reset'
23:57:38.654850 trace.c:405 performance: 0.025126313 s: git command: 'git' 'stash' 'list'

Signed-off-by: Karsten Blees &lt;blees@dcon.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
