Commit Graph

43 Commits

Author SHA1 Message Date
Benoit Jacob
10ad96c29e 4-space indent 2022-04-12 20:36:08 +00:00
Benoit Jacob
92fdf12e05 make progress info and ANSI colors conditional on being a TTY 2022-04-12 20:31:47 +00:00
Benoit Jacob
ce1f6d0526 explicitly initialize as false - hope the compiler optimizes that 2022-04-12 17:47:14 +00:00
Benoit Jacob
331f39e6a5 rename to s_disconnect and make file-scope static 2022-04-12 17:45:33 +00:00
Benoit Jacob
55ae38a138 Make disconnect atomic because it's written by a signal handler 2022-04-12 17:34:41 +00:00
Benoit Jacob
8c3868e43b Make disconnect volatile as it's written by a signal handler. 2022-04-12 16:06:54 +00:00
Bartosz Taudul
5a2a58f68f
Make capture output better suited for 80-char-wide terminals. 2021-12-30 16:21:25 +01:00
Bartosz Taudul
13b28714ee
Display failure context in capture utility. 2021-10-10 14:52:30 +02:00
Graydon Hoare
26fd867e52
Add -s <seconds> parameter to capture.cpp 2021-08-25 22:52:23 -07:00
Bartosz Taudul
f8ccd8c40d
Move TracyStackFrames to common. 2021-05-23 23:51:56 +02:00
Bartosz Taudul
3d75bf653a
Add interface for frame images dict building. 2021-05-15 15:50:20 +02:00
Bartosz Taudul
9892407ff0 Use system getopt in capture utility on unix.
This fixes header clash between getopt.h and unistd.h (required for unlink),
which prevented LTO on macos.
2021-01-27 00:32:38 +01:00
Bartosz Taudul
8adfd45453 Display failure callstack in capture utility. 2020-10-06 14:50:55 +02:00
Bartosz Taudul
9f00bde629 Use 127.0.0.1 instead of localhost in capture.
This is to keep the default address uniform between tools. There was a
case where localhost wasn't resolving properly and a connection couldn't
be established.
2020-09-24 01:31:24 +02:00
Bartosz Taudul
4a0926aa70 Early check if output is writable in capture utility. 2020-09-20 20:11:19 +02:00
Bartosz Taudul
a1916a7c6c Mark Usage() as a noreturn function. 2020-09-20 20:08:39 +02:00
Bartosz Taudul
7da17680ae Prevent overwriting existing files by the capture utility. 2020-09-20 20:04:43 +02:00
kubouch
1f6d18efcd Fix getopt include for Windows build of capture 2020-07-11 15:10:47 +03:00
kubouch
276e40ab2a Move getopt to root 2020-07-11 12:26:01 +03:00
Bartosz Taudul
3f236b7e91 Handle ^C in capture utility on windows. 2020-04-03 02:00:07 +02:00
Bartosz Taudul
9f15d402de The capture utility will connect to localhost by default. 2020-04-03 01:46:07 +02:00
Bartosz Taudul
f58c96e4b3 Display trace file size in capture utility. 2020-02-08 13:10:41 +01:00
Bartosz Taudul
f017b27ae2 RealToString() is always called with separator set to true. 2020-01-31 01:43:24 +01:00
Bartosz Taudul
fa53c2e683 Don't care about memory usage tracking data races. 2019-11-10 19:21:24 +01:00
Bartosz Taudul
9702461b09 Display elapsed time in capture utility. 2019-11-07 01:51:45 +01:00
Bartosz Taudul
f1fe2df780 Add data transferred display to capture utility. 2019-10-26 16:18:03 +02:00
Bartosz Taudul
82cd667b30 Allow specifying network port in server. 2019-09-21 15:43:01 +02:00
Bartosz Taudul
41beff29a9 Remove redundant GetTimeBegin().
Traces now start at zero time.
2019-08-15 21:04:20 +02:00
Bartosz Taudul
1a32edebf2 Extract text printing functions. 2019-06-18 20:43:28 +02:00
Bartosz Taudul
e4e20b47ca Handle dropped connection in capture utility. 2019-02-12 11:13:53 +01:00
Bartosz Taudul
606a4502e0 Fix MSVC build.
"SIGINT is not supported for any Win32 application."
2019-01-24 20:04:08 +01:00
Bartosz Taudul
34c9cf512e Disconnect on ^C in capture utility. 2019-01-24 19:13:09 +01:00
Bartosz Taudul
9944a73444 Store failure reason strings in Worker. 2019-01-15 18:42:15 +01:00
Bartosz Taudul
3cd97138fc Capture utility also displays failure messages. 2019-01-14 23:52:38 +01:00
Bartosz Taudul
b6e9905155 Display time span during capture in capture utility. 2018-09-18 16:24:32 +02:00
Bartosz Taudul
920f9ac7aa More compact network statistics display. 2018-09-18 16:20:41 +02:00
Bartosz Taudul
9211ce42da Non-on-demand client is only able to handle one connection. 2018-09-09 19:42:06 +02:00
Bartosz Taudul
984a711666 Send protocol version to verify handshake. 2018-09-09 19:28:53 +02:00
Bartosz Taudul
b92087bd95 Fix capture utility. 2018-08-04 23:53:21 +02:00
Bartosz Taudul
16a98c8c17 Move benaphore to common directory. 2018-04-01 18:59:55 +02:00
Bartosz Taudul
045870ad95 Doh! FileWrite destructor was never called. 2018-03-29 01:11:54 +02:00
Bartosz Taudul
2f2dd2fc21 Display basic capture information. 2018-03-10 02:25:29 +01:00
Bartosz Taudul
c673f70f90 Add command line trace capture utility. 2018-03-10 01:29:27 +01:00