PROFIL(3) Linux Programmer's Manual PROFIL(3)NAME
profil - execution time profile
SYNOPSIS
#include <unistd.h>
int profil(u_short *buf, size_t bufsiz, size_t offset, u_int scale);
DESCRIPTION
This routine provides a means to find out in what areas your program spends most of its time. The argument buf points to bufsiz bytes of
core. Every virtual 10 milliseconds, the user's program counter (PC) is examined: offset is subtracted and the result is multiplied by
scale and divided by 65536. If the resulting value is less than bufsiz, then the corresponding entry in buf is incremented. If buf is
NULL, profiling is disabled.
RETURN VALUE
Zero is always returned.
BUGS
profil cannot be used on a program that also uses ITIMER_PROF itimers.
True kernel profiling provides more accurate results. Libc 4.4 contained a kernel patch providing a system call profil.
CONFORMING TO
Similar to a call in SVr4 (but not POSIX.1).
SEE ALSO gprof(1), setitimer(2), signal(2), sigaction(2)Linux 2.0 1993-07-23 PROFIL(3)
Check Out this Related Man Page
PROFIL(3) Linux Programmer's Manual PROFIL(3)NAME
profil - execution time profile
SYNOPSIS
#include <unistd.h>
int profil(unsigned short *buf, size_t bufsiz, size_t offset, unsigned int scale);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
profil(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
DESCRIPTION
This routine provides a means to find out in what areas your program spends most of its time. The argument buf points to bufsiz bytes of
core. Every virtual 10 milliseconds, the user's program counter (PC) is examined: offset is subtracted and the result is multiplied by
scale and divided by 65536. If the resulting value is less than bufsiz, then the corresponding entry in buf is incremented. If buf is
NULL, profiling is disabled.
RETURN VALUE
Zero is always returned.
CONFORMING TO
Similar to a call in SVr4 (but not POSIX.1-2001).
BUGS
profil() cannot be used on a program that also uses ITIMER_PROF interval timers (see setitimer(2)).
True kernel profiling provides more accurate results. Libc 4.4 contained a kernel patch providing a system call profil.
SEE ALSO gprof(1), setitimer(2), sigaction(2), signal(2)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2007-07-26 PROFIL(3)
I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Hello all,
I want to call my users .profile in cron?
I understand that i have to do it explicitly in crontab entry.
How can we do it ? How can i write a simple script calling it?
Thanks & Regards
Abhijeet (15 Replies)
The “set -o vi” command won't run in the .profile. WHY?
This has me puzzled as the problem seems to be too simple, but can't figure it out. Here's the info...
Running...
Generic sun4u sparc SUNW,Ultra-5_10
K shell
Here's the .profile
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All... (12 Replies)
Hi
I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done
$echo $SHELL
/bin/ksh
$pwd
/home/khan
$ls -l .profile
-rwxrwxrwx
$more .profile
set -o vi
export PS1='khan'
$echo $PS1
$ (13 Replies)
Hello all,
I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS.
HOSTNAME=$(hostname)
if ] || ]... (14 Replies)
Hi,
Below is what i have in my profile:
alias wldm='cd /opt/app/wls'
If i use bash or ksh shell this alias does not work.
What should be done for this alias to work with all these simultaneously -> No Shell, bash shell, and ksh shell (14 Replies)
Hello,
I'm trying to compile my code with ‘-pg' option in order to use GNU profiler as follows:
gcc example1.c -pg -o example1 -O2 -lc
But I'm getting this error :
collect2: gcrt0.o: cannot open as COFF file
I'm working on AIX 5.3
Thanks in advance for your help (17 Replies)
Hi Gurus,
Recently we have migrated our servers from AIX to Linux. Most of the scripts written in AIX server are sourcing environment variables using .profile file. Now we have the following options:
1. Change all the scripts where ever .profile is being used and replace it with... (14 Replies)
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Hi,
Please assist me why HC alias is not working under this shell?
root@singapore # grep HC /.profile
alias HC='cd /var/tmp/HC/2015/`date +%B`'
root@singapore # . /.profile
Sourcing //.profile-EIS.....
root@singapore # echo $HC
root@singapore # HC
HC: not found
root@singapore # echo... (18 Replies)
Hello All,
I am having an issue with ellipse environment,
Subscribing ellipse version /opt/mincom/ellipse/bs037__ora_cics_svr
.profile: ulimit: exceeds allowable limit ,
prj -l ellsupp
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192... (22 Replies)