1N/A * COPYRIGHT: Copyright (c) 2007 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 16-Sep-2007 Brendan Gregg Created this. 1N/A * NUM_TO_STR(n) - takes a number and returns a string with a prefix, 1N/A * intended to fit withen 6 chars. 1N/A lltostr((n %
1000000) /
100000)),
"M") : n >=
1000 ? \
1N/A * BYTES_TO_STR(n) - takes a byte count and returns a string with a prefix, 1N/A * intended to fit withen 6 chars. 1N/A lltostr((n %
1048576) /
104858)),
"M") : n >=
1000 ? \
1N/A * US_TO_STR(n) - takes microseconds and returns a string with a prefix, 1N/A * intended to fit withen 6 chars. 1N/A n == 0 ?
"0" : n >=
1000 ? \