This commit is contained in:
brendan%mozilla.org 2000-04-22 18:36:10 +00:00
Родитель 15dea921fa
Коммит 07a7b51820
4 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -256,8 +256,8 @@ static void connect_nodes(graphnode *from, graphnode *to, callsite *site)
/*
* Say the stack looks like this: ... => JS => js => JS => js.
* We must avoid overcounting JS=>js because the first edge total
* includes second (because the lower site's total includes all
* its kids' totals).
* includes the second JS=>js edge's total (which is because the
* lower site's total includes all its kids' totals).
*/
if (!to->low || to->low < from->low) {
edge[0].direct += site->direct;

Просмотреть файл

@ -43,8 +43,9 @@ PR_BEGIN_EXTERN_C
/**
* Call NS_TraceMalloc with a valid log file descriptor to enable logging
* of compressed malloc traces, including callsite chains. Integers are
* unsigned, at most 32 bits, and encoded as follows:
* of compressed malloc traces, including callsite chains. Integers may be
* unsigned serial numbers, sizes, or offsets, and require at most 32 bits.
* They're encoded as follows:
* 0-127 0xxxxxxx (binary, one byte)
* 128-16383 10xxxxxx xxxxxxxx
* 16384-0x1fffff 110xxxxx xxxxxxxx xxxxxxxx

Просмотреть файл

@ -256,8 +256,8 @@ static void connect_nodes(graphnode *from, graphnode *to, callsite *site)
/*
* Say the stack looks like this: ... => JS => js => JS => js.
* We must avoid overcounting JS=>js because the first edge total
* includes second (because the lower site's total includes all
* its kids' totals).
* includes the second JS=>js edge's total (which is because the
* lower site's total includes all its kids' totals).
*/
if (!to->low || to->low < from->low) {
edge[0].direct += site->direct;

Просмотреть файл

@ -43,8 +43,9 @@ PR_BEGIN_EXTERN_C
/**
* Call NS_TraceMalloc with a valid log file descriptor to enable logging
* of compressed malloc traces, including callsite chains. Integers are
* unsigned, at most 32 bits, and encoded as follows:
* of compressed malloc traces, including callsite chains. Integers may be
* unsigned serial numbers, sizes, or offsets, and require at most 32 bits.
* They're encoded as follows:
* 0-127 0xxxxxxx (binary, one byte)
* 128-16383 10xxxxxx xxxxxxxx
* 16384-0x1fffff 110xxxxx xxxxxxxx xxxxxxxx