Benoit Jacob
c01071e459
Implement Bartosz' simpler idea to support both su flavors
2020-11-17 15:06:00 -05:00
Benoit Jacob
47b33b47e9
restart from scratch again!
2020-11-17 14:56:32 -05:00
Benoit Jacob
5b3cec57da
rename ExeclpAsRoot -> ExecAsRoot and clarify relation to execlp
2020-11-16 23:29:03 -05:00
Benoit Jacob
2491f11efc
close a fd, and unbreak compilation outside of Android.
2020-11-16 23:20:42 -05:00
Benoit Jacob
bca89e76de
one more code style fix
2020-11-16 23:16:02 -05:00
Benoit Jacob
c9b79561a4
revert to the cat > /data/tracy_systrace approach
2020-11-16 23:10:32 -05:00
Benoit Jacob
485497ee67
redirect stderr to /dev/null when trying potentially incorrect flags
2020-11-16 23:01:44 -05:00
Benoit Jacob
583f43f2fe
mostly coding style fixes
2020-11-16 22:56:59 -05:00
Benoit Jacob
d1e226b2eb
renaming
2020-11-16 22:46:48 -05:00
Benoit Jacob
460c2b15d2
address review comments
2020-11-16 22:42:52 -05:00
Benoit Jacob
e719e7fd58
Merge branch 'sampling-take-2' of /usr/local/google/home/benoitjacob/iree/third_party/tracy into sampling
2020-11-16 15:56:58 -05:00
Benoit Jacob
f80c2beb3f
make it work
2020-11-16 15:56:35 -05:00
Benoit Jacob
e7a110eb76
Restart from scratch!
2020-11-16 15:55:22 -05:00
Benoit Jacob
0fdcdd0ef9
simplify an if by omitting the redundant __ANDROID__ condition
2020-11-13 21:47:12 -05:00
Benoit Jacob
c30b9e0ecd
restore some mistakenly removed code populating missing names as '???'
2020-11-12 22:06:47 -05:00
Benoit Jacob
662d3c1ed5
some touch-ups
2020-11-12 21:05:24 -05:00
Benoit Jacob
89b184311d
polish error messages (not in Polish though)
2020-11-12 16:17:55 -05:00
Benoit Jacob
e2c1af9d5a
be graceful if CLOCK_MONOTONIC_RAW is not defined.
2020-11-12 14:19:07 -05:00
Benoit Jacob
de9b7acfcd
Make it work on non-android Linux.
2020-11-12 14:12:08 -05:00
Benoit Jacob
577b8712a3
add comments
2020-11-12 11:18:18 -05:00
Benoit Jacob
bd147e2dee
logging simplification
2020-11-12 11:18:18 -05:00
Benoit Jacob
f1a0e97bee
make it work
2020-11-12 11:18:18 -05:00
Benoit Jacob
bc49763888
start reintroducing support for profiling a non-root process.
2020-11-12 11:18:18 -05:00
Benoit Jacob
c2add4bc14
Simplify calling TraceWrite and consistently check its return value.
2020-11-12 11:18:18 -05:00
Benoit Jacob
a9c391b9e3
Remove the 'payload' stuff now that we're just doing IO.
...
This unifies the android and other-linux code paths.
The rationale for just doing IO now is as in the previous commit:
we need the whole process to be run as root, so we don't need to
isolate this particular IO in a separate `su -c` command anymore.
2020-11-12 11:18:18 -05:00
Benoit Jacob
ff6537abff
Make sampling work on current Android (no su -c).
...
The `su -c` approach does not work on current Android. It seems that
on current Android, access to /proc and /sys is restricted enough
that in practice, developers profiling on Android are likely running
the whole instrumented process as root anyway, so `su` shouldn't be
needed. (In particular, note that access to /proc/$pid is limited
to members of a `readproc` group).
2020-11-12 11:18:18 -05:00
Bartosz Taudul
d7059eca63
Prepare for Zen 3.
...
0xA20F10 is Vermeer.
2020-11-07 00:26:45 +01:00
Bartosz Taudul
30b4eafa22
Add Zen 2 CPU ids.
...
0x860F81 is Lucienne.
0x890F00 is VanGogh.
2020-11-07 00:26:00 +01:00
Bartosz Taudul
b36e821cc7
Add cascade lake CPU ids.
2020-11-07 00:20:55 +01:00
Bartosz Taudul
612902f20d
Update NEWS.
2020-11-07 00:16:39 +01:00
Bartosz Taudul
02c90db2e4
Display op description, if available.
2020-11-07 00:16:10 +01:00
Bartosz Taudul
322cc3bf12
Add missing op description list definition.
2020-11-07 00:15:58 +01:00
Bartosz Taudul
a5fd6662be
Add CLX to list of uarchs.
2020-11-07 00:07:20 +01:00
Bartosz Taudul
c08d081f9a
Update uops.info data to 05.11.2020.
2020-11-06 23:59:57 +01:00
Bartosz Taudul
da036bf322
Save asm op description.
2020-11-06 23:56:26 +01:00
Bartosz Taudul
c9352ce228
Check for more throughput values.
2020-11-06 23:43:47 +01:00
Bartosz Taudul
fcc0e22c0e
Use more recent setup-msbuild action.
2020-11-06 01:29:35 +01:00
Bartosz Taudul
e5967bdc52
Fix context switch + samples offset logic.
2020-11-06 00:20:26 +01:00
Bartosz Taudul
c9f3898c1b
Update NEWS.
2020-11-06 00:01:26 +01:00
Bartosz Taudul
e920b5cf64
Allow disabling call stack sampling.
...
Only on Windows for now.
2020-11-05 23:59:52 +01:00
Bartosz Taudul
4caaa325c2
Allow disabling context switch tracing.
...
Currently only on Windows.
2020-11-05 23:56:19 +01:00
Bartosz Taudul
a34abe646c
Allow disabling vsync capture.
2020-11-05 23:44:28 +01:00
Bartosz Taudul
a48d540854
Cache statistics range-limited data.
2020-11-01 16:24:08 +01:00
Bartosz Taudul
87c3796e84
Fix division by zero if no sampling data is present.
2020-11-01 14:45:26 +01:00
Bartosz Taudul
76e2ae484b
Update manual.
2020-10-30 18:30:38 +01:00
Bartosz Taudul
282dd94b6e
Update NEWS.
2020-10-30 18:28:39 +01:00
Bartosz Taudul
7791654896
Allow copying callstack to clipboard.
2020-10-30 18:27:52 +01:00
Bartosz Taudul
8b4e03486d
Remove trailing whitespace.
2020-10-29 23:06:28 +01:00
Bartosz Taudul
e2515c6a99
Remove pre-C++11 compat macros from concurrentqueue.
2020-10-29 23:05:24 +01:00
Bartosz Taudul
0c48956410
Fix parsing of source files that do not end in newline.
2020-10-28 21:43:03 +01:00