mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
TODO updates
svn path=/trunk/; revision=368
This commit is contained in:
9
TODO
9
TODO
@ -287,9 +287,12 @@ Before 1.2:
|
|||||||
.eh_frame_hdr section, that's still 18 pages for gtk+. The
|
.eh_frame_hdr section, that's still 18 pages for gtk+. The
|
||||||
.eh_frame section for gtk+ is 72 pages.
|
.eh_frame section for gtk+ is 72 pages.
|
||||||
|
|
||||||
A possibility may be to consider two stacktraces identical if
|
A possibility may be to consider two stacktraces identical
|
||||||
the only differing values are *outside* the text segments.
|
if the only differing values are *outside* the text
|
||||||
This may work since stack frames tend to be the same size.
|
segments. This may work since stack frames tend to be the
|
||||||
|
same size. Is there a way of determining the location of
|
||||||
|
text segments without reading the ELF files? Maybe just
|
||||||
|
check if it's inside an executable mappign.
|
||||||
|
|
||||||
It is then sufficient in user space to only store one
|
It is then sufficient in user space to only store one
|
||||||
representative for each set of considered-identical stack
|
representative for each set of considered-identical stack
|
||||||
|
|||||||
@ -86,7 +86,7 @@ time_diff (const GTimeVal *first,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
add_trace_to_stash (const SysprofStackTrace *trace,
|
add_trace_to_stash (const SysprofStackTrace *trace,
|
||||||
StackStash *stash)
|
StackStash *stash)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
gulong *addrs;
|
gulong *addrs;
|
||||||
@ -213,7 +213,8 @@ open_fd (Collector *collector,
|
|||||||
|
|
||||||
while (fd < 0 && g_timer_elapsed (timer, NULL) < 0.5)
|
while (fd < 0 && g_timer_elapsed (timer, NULL) < 0.5)
|
||||||
{
|
{
|
||||||
/* Wait for udev to discover the new device */
|
/* Wait for udev to discover the new device.
|
||||||
|
*/
|
||||||
usleep (100000);
|
usleep (100000);
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
@ -256,8 +257,8 @@ open_fd (Collector *collector,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
collector_start (Collector *collector,
|
collector_start (Collector *collector,
|
||||||
GError **err)
|
GError **err)
|
||||||
{
|
{
|
||||||
if (collector->fd < 0 && !open_fd (collector, err))
|
if (collector->fd < 0 && !open_fd (collector, err))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user