mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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.
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user