Sponsored Content
Top Forums Programming function profiler for HPUX...? Post 58299 by PxT on Wednesday 17th of November 2004 03:02:46 PM
Old 11-17-2004
See the man pages for profil(2) and monitor(3c)
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

2. Programming

C/C++ Appliaction Profiler

Dear All, I have my C/C++ appliaction running on Sun Solaris 5.9. Can any of you please suggest a profiler which i can use for improving the code performance. Please reply as i am stuck with the performance of the code. (1 Reply)
Discussion started by: ashisharora
1 Replies

3. Shell Programming and Scripting

profiler

What is a hard and soft match in unix profiler ??? (1 Reply)
Discussion started by: ekharvi
1 Replies

4. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
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(): Since glibc 2.21: _DEFAULT_SOURCE In glibc 2.19 and 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) Up to and including glibc 2.19: _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. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+-----------+ |Interface | Attribute | Value | +----------+---------------+-----------+ |profil() | Thread safety | MT-Unsafe | +----------+---------------+-----------+ CONFORMING TO
Similar to a call in SVr4 (but not POSIX.1). 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), sprof(1), setitimer(2), sigaction(2), signal(2) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 PROFIL(3)
All times are GMT -4. The time now is 10:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy