[sysprof] libsysprof-capture: remove fallback code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-capture: remove fallback code
- Date: Thu, 5 Mar 2020 23:30:18 +0000 (UTC)
commit 2725565eb935acc47d8833a77ecf5715c109e3d9
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 5 15:30:02 2020 -0800
libsysprof-capture: remove fallback code
We don't support the fallback writer interface currently, so this can go
until we decide what to do going forward.
src/libsysprof-capture/sysprof-collector.c | 30 +-----------------------------
1 file changed, 1 insertion(+), 29 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c
index 902428d..7e2281c 100644
--- a/src/libsysprof-capture/sysprof-collector.c
+++ b/src/libsysprof-capture/sysprof-collector.c
@@ -248,35 +248,7 @@ sysprof_collector_get (void)
#endif
if (g_getenv ("SYSPROF_CONTROL_FD") != NULL)
- {
- self->buffer = request_writer ();
- }
-#if 0
- else
- {
- /* TODO: Fix envvar name */
- const gchar *trace_fd = g_getenv ("SYSPROF_TRACE_FD");
-
- if (trace_fd != NULL)
- {
- int fd = atoi (trace_fd);
-
- if (fd > 0)
- {
- self->writer = sysprof_capture_writer_new_from_fd (fd, 0);
- self->is_shared = TRUE;
- }
- }
-
- if (self->writer == NULL && g_getenv ("SYSPROF_TRACE") != NULL)
- {
- g_autofree gchar *filename = g_strdup_printf ("capture.%d.syscap", (int)getpid ());
-
- self->writer = sysprof_capture_writer_new (filename, 0);
- self->is_shared = TRUE;
- }
- }
-#endif
+ self->buffer = request_writer ();
if (self->is_shared)
shared_collector = self;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]