Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

PROF(1)

��������
prof - ����� ����������� ��������������

���������

      prof  [-t] [-c] [-a] [-n] [-o] [-x] [-g] [-z] [-h] [-s] [-m ����_�������]
            [�����]

��������
������� prof �������������� ����_�������, �������������� � ������� ������� monitor(3C). ��� ���� �������� ������� ���� �� ������� ����� ����� (�� ��������� a.out) � ����������� � ������_������� (�� ��������� mon.out). ��� ������� �������� ������� �� ������ ������ �������� ����� (� ���������), ����������� �� ���������� ������� ��������� ����� ������� ������� ������� � ������� ����������. ����� ����, ���������� ����� ������� ������ ������� � ������� ����� � �������������, ����������� �� ���� �����.

��������� ����������������� ����� ���������� �������� ���������� ��������� �����:
-t ����������� �� ���������� ���� ������ ������� (����������� �� ���������).
-c ����������� �� ���������� ���������� �������.
-a ����������� �� ���������� �������.
-n ����������� �� ������ �����������������.

����������������� ����� -o � -x ������ ������ ������ ������� ��������:
-o �������� ������ � ������ ������������ ����� �������.
-x �������� ������ � ������ ����������������� ����� �������.

��������� ����� ����� ������������ � ������������ ����������:
-g �������� � ������ ������������ ������� (����������� �������).
-z �������� � ������ ��� ������� �� ��������� �������������� [��. monitor(3C)], ���� ���� ��������������� �� ���������� ������� � ���� ������ ������� ����� ����.
-h �������� ������ ������ ����������� ���������. (������ ����� �������, ���� ���������� ������������� ��� ����������� ���������.)
-s ������ � ����������� �������� �������� ���������� � ��������������.
-m ����_������� ������������ � �������� ��������� ����_�������, � �� mon.out.

��������� ������� ���� � ������� ��������������, ���� �������������� ������ ����������� �������� cc(1) � ������ -p. ��� ���������� ������ ����� � ������ � ����� ��������� ����������� ������ ������� monitor(3C). ������ �� ���� ������� �������� � ������ ����� � ������������ ��������������. ���� �����, ����� ��� �����-�� ������� ���� ������ ���������� �� �������, ���� � ������ �������� ������� ������������� � ������ -p.

��� �����, ������������ ������������� ����������, ������������ �� ���������� ��������� PROFDIR. � ������ ���������� ���������� PROFDIR, � ��������, ������� �� ������ ��������� ���������, ��������� ���� mon.out. ���� PROFDIR=�������, �� ��������� ���� �������/�������������_��������.���_���������, ��� ���_��������� �������� ���������� ��������� ������ argv[0] � ��������� ���������� ���������. ���� �������� PROFDIR �������� ������ ��������, �� ������ � �������������� � ���� �� ������������.

� ����� �������������� ������� ����� ���� ������� �� ���������� � ������� ������� MARK [��. prof(5)].

�����

     mon.out         ��������������� ���� �������.
     a.out           ��������������� ���� � �������� ����.

��. �����
cc(1).
exit(2), profil(2), monitor(3C), prof(5) � ����������� ������������.

���������������
��������� ������, ���������� ��� ���������������� ���������� ������� ��������� ����� ������������� � �������� 20 � ����� ��������� ��-�� �������� � �������� ������ ���-������, ����������� � ������� ����������. ���� ���� ��� �������, ��� ��������� ����������� �� ���������� � ������ �����������, �� � ����� ������� ������� ��� ����������� �������� ����� �������� ���������� ������. � ������ ������� ������� ��������� ��������� ����� ��������� ���������� ��������� ������ � ��������� � ������ �����, ������������ ������ ������������ ��������.

���� �� ������������ ����� -g, �� ����� ���������� ����������� ������� ������������� � ���������� ������� ��������. ������ ���������� ������� ������� ������� ���������� �����.

�����������
�������� ����� ������� ������������� ������ ��� ��������, ���������� exit(2) ��� ����������� ������� �� ������� main. � ������ ������� ����� ������������ � ����� �������������� ������ ������� monitor.

��� ������������� ��� �������������� ����� -p � ������� cc(1) ���� ������ ����� ������� (600), ��� ������� �� ����� ���������� ��������� �������������� ����� �������. ��� ���������� ����� ������� ������� �������� ������� monitor ��������������. ���� ����� ����� ��������, �� ���������� ��������� ������ � ���� mon.out �������� �����������. ����� �������������� ��������� ���������� �������� prof ������������� � ��� ������, ���� ��� ��������� 5/6 ���������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT