Dmytro Dzhulgakov
c25e33789e
Lightweight at-most-once logging for API usage ( #20745 )
...
Summary:
Resubmit #20698 which got messed up.
Idea is that when PyTorch is used in a custom build environment (e.g. Facebook), it's useful to track usage of various APIs centrally. This PR introduces a simple very lightweight mechanism to do so - only first invocation of a trigger point would be logged. This is significantly more lightweight than #18235 and thus we can allow to put logging in e.g. TensorImpl.
Also adds an initial list of trigger points. Trigger points are added in such a way that no static initialization triggers them, i.e. just linking with libtorch.so will not cause any logging. Further suggestions of what to log are welcomed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20745
Differential Revision: D15429196
Pulled By: dzhulgakov
fbshipit-source-id: a5e41a709a65b7ebccc6b95f93854e583cf20aca
2019-05-23 23:17:59 -07:00
..
2019-01-05 08:53:35 -08:00
2019-05-23 20:40:17 -07:00
2019-05-03 15:33:46 -07:00
2019-04-20 02:12:06 -07:00
2019-05-14 20:13:38 -07:00
2018-12-11 16:54:08 -08:00
2019-04-10 12:04:39 -07:00
2019-05-18 01:08:45 -07:00
2019-05-23 20:40:17 -07:00
2019-05-08 13:29:11 -07:00
2019-05-22 13:55:19 -07:00
2019-03-22 00:19:59 -07:00
2018-11-29 14:00:16 -08:00
2019-05-08 09:35:40 -07:00
2019-04-03 13:17:08 -07:00
2019-03-27 11:21:44 -07:00
2019-03-01 10:37:27 -08:00
2019-04-03 13:17:08 -07:00
2018-03-27 13:10:18 -07:00
2018-06-05 15:49:16 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-07-11 13:59:50 -07:00
2019-04-16 19:04:06 -07:00
2018-03-27 13:10:18 -07:00
2018-06-26 14:55:48 -07:00
2019-01-09 15:36:53 -08:00
2019-01-09 15:36:53 -08:00
2018-08-31 22:25:57 -07:00
2019-05-10 07:00:58 -07:00
2018-12-11 10:48:47 -08:00
2018-11-29 14:00:16 -08:00
2018-09-13 15:09:22 -07:00
2018-03-27 13:10:18 -07:00
2018-06-22 00:41:51 -04:00
2018-12-09 08:26:46 -08:00
2019-01-30 18:42:12 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-10-16 16:36:58 -07:00
2018-10-16 16:36:58 -07:00
2019-02-20 21:12:24 -08:00
2018-03-27 13:10:18 -07:00
2019-03-27 14:56:32 -07:00
2019-02-08 15:48:42 -08:00
2019-03-27 14:56:32 -07:00
2018-10-01 18:31:41 -07:00
2018-10-01 18:31:41 -07:00
2018-08-22 00:25:26 -07:00
2018-11-29 14:00:16 -08:00
2019-03-18 23:11:54 -07:00
2018-03-27 13:10:18 -07:00
2018-09-05 09:55:52 -07:00
2019-05-06 15:06:32 -07:00
2019-05-06 15:06:32 -07:00
2018-05-29 11:38:02 -07:00
2018-06-26 14:55:48 -07:00
2018-03-27 13:10:18 -07:00
2018-05-10 23:14:27 -07:00
2018-11-12 15:59:46 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-08-20 20:26:42 -07:00
2019-04-08 11:54:10 -07:00
2018-07-24 14:41:59 -07:00
2018-08-23 22:42:47 -07:00
2018-03-27 13:10:18 -07:00
2019-02-07 00:29:51 -08:00
2018-10-12 12:07:08 -07:00
2018-03-27 13:10:18 -07:00
2018-10-24 17:07:31 -07:00
2018-03-27 13:10:18 -07:00
2019-02-07 00:29:51 -08:00
2019-02-07 00:29:51 -08:00
2018-04-22 21:58:14 -07:00
2019-05-22 12:26:20 -07:00
2018-04-02 16:35:27 -07:00
2019-04-17 21:10:38 -07:00
2018-03-27 13:10:18 -07:00
2019-05-22 12:26:20 -07:00
2019-02-20 13:14:11 -08:00
2018-03-27 13:10:18 -07:00
2018-11-29 14:00:16 -08:00
2019-02-07 00:29:51 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2019-02-07 00:29:51 -08:00
2018-09-04 21:10:06 -07:00
2019-03-15 13:14:26 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-11-29 14:00:16 -08:00
2018-11-29 14:00:16 -08:00
2018-03-27 13:10:18 -07:00
2018-04-17 23:36:40 -07:00
2019-02-12 15:02:50 -08:00
2018-03-27 13:10:18 -07:00
2018-10-09 15:54:04 -07:00
2018-11-16 08:19:20 -08:00
2018-11-01 14:27:07 -07:00
2018-11-01 14:27:07 -07:00
2018-10-31 11:16:38 -07:00
2018-06-26 14:55:48 -07:00
2018-06-26 14:55:48 -07:00
2018-10-11 17:36:11 -07:00
2018-12-07 10:01:25 -08:00
2018-12-12 12:21:10 -08:00
2018-02-07 17:35:29 -08:00
2019-03-16 12:28:05 -07:00
2018-03-27 13:10:18 -07:00
2018-11-29 14:00:16 -08:00
2019-02-07 00:29:51 -08:00
2019-04-17 21:10:38 -07:00
2018-03-27 13:10:18 -07:00
2018-05-19 23:10:48 -07:00
2019-02-07 00:29:51 -08:00
2018-03-27 13:10:18 -07:00
2018-09-17 21:25:49 -07:00
2018-03-27 13:10:18 -07:00
2018-11-12 15:59:46 -08:00
2019-01-02 16:36:37 -08:00
2019-02-03 22:14:51 -08:00
2019-01-15 18:42:02 -08:00
2019-04-03 12:47:17 -07:00
2018-10-30 18:24:30 -07:00
2018-11-16 08:19:20 -08:00
2018-09-27 03:09:54 -07:00
2018-09-27 03:09:54 -07:00
2019-05-23 23:17:59 -07:00
2019-03-06 10:48:15 -08:00
2018-11-07 09:16:13 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-06-26 14:55:48 -07:00
2018-07-06 13:26:09 -07:00
2018-07-06 13:26:09 -07:00
2018-11-29 14:00:16 -08:00
2019-02-08 16:46:50 -08:00
2019-05-10 07:01:01 -07:00
2018-12-12 01:39:50 -08:00
2018-12-12 01:39:50 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2019-05-20 19:09:22 -07:00
2018-03-27 13:10:18 -07:00
2018-12-17 16:02:16 -08:00
2019-01-17 04:57:34 -08:00
2019-03-25 16:58:34 -07:00
2019-04-01 10:36:23 -07:00
2018-03-27 13:10:18 -07:00
2018-11-08 00:02:37 -08:00
2019-03-12 20:10:46 -07:00
2019-03-29 19:00:48 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-11-01 14:27:05 -07:00
2019-01-09 15:36:53 -08:00
2018-03-27 13:10:18 -07:00
2019-05-23 21:09:04 -07:00
2019-05-13 17:01:08 -07:00