12-24-2015
Joyeux Noël à tous
These 2 Users Gave Thanks to disedorgue For This Post:
4 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
To All UNIX Forum Members!
Neo has sent you a flash greeting card. You may see it by clicking on the link below:
http://www.afreegreetingcard.com/cgi-bin/magiccard.cgi?122920242420332
:) (5 Replies)
Discussion started by: Neo
5 Replies
2. What is on Your Mind?
http://www.unix.com/images/snowman_greetings.gif
Seasons Greetings, Happy Holidays and Happy New Year!
As we get underway into the 2009 Holiday Season, all of us at The UNIX and Linux Forums would like to thank you for a great year.
We are fortunate to have a wonderful community... (0 Replies)
Discussion started by: Neo
0 Replies
3. What is on Your Mind?
I wish all Administrators,Moderators, Code Taggers, all members and followers of this forum that Santa brings you the gift of never ending happiness this Christmas!
May you and your family be blessed abundantly.
Merry Christmas and a Prosperous New Year! :)
With Best Regards,
Akshay Hegde (1 Reply)
Discussion started by: Akshay Hegde
1 Replies
4. What is on Your Mind?
A Merry Xmas to all of you.
And, as a special present to vbe (he knows why) a little exercise:
#! /bin/ksh
pPrintSnow ()
{
typeset -i iLen=$1
while (( iLen )) ; do
if ! (( RANDOM % 31 )) ; then
printf "%1s" "."
else
printf "%1s" " "
fi
((... (0 Replies)
Discussion started by: bakunin
0 Replies
LEARN ABOUT OPENSOLARIS
prof
prof(5) Standards, Environments, and Macros prof(5)
NAME
prof - profile within a function
SYNOPSIS
#define MARK
#include <prof.h>
void MARK(name);
DESCRIPTION
MARK introduces a mark called name that is treated the same as a function entry point. Execution of the mark adds to a counter for that
mark, and program-counter time spent is accounted to the immediately preceding mark or to the function if there are no preceding marks
within the active function.
name may be any combination of letters, numbers, or underscores. Each name in a single compilation must be unique, but may be the same as
any ordinary program symbol.
For marks to be effective, the symbol MARK must be defined before the header prof.h is included, either by a preprocessor directive as in
the synopsis, or by a command line argument:
cc -p -DMARK work.c
If MARK is not defined, the MARK(name) statements may be left in the source files containing them and are ignored. prof -g must be used
to get information on all labels.
EXAMPLES
In this example, marks can be used to determine how much time is spent in each loop. Unless this example is compiled with MARK defined on
the command line, the marks are ignored.
#include <prof.h>
work( )
{
int i, j;
. . .
MARK(loop1);
for (i = 0; i < 2000; i++) {
. . .
}
MARK(loop2);
for (j = 0; j < 2000; j++) {
. . .
}
}
SEE ALSO
profil(2), monitor(3C)
SunOS 5.11 3 Jul 1990 prof(5)