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

PROFIL(2)

��������
profil - ���������� ���������� ������� ���������

���������

        void profil (buff, bufsiz, offset, scale)
        char *buff;
        int bufsiz, offset, scale;

��������
�������� buff ��������� �� ������� ������, ������ ������� � ������ �������� ���������� bufsiz. ����� ���������� ������� ���������� ������ ��� ������ ����� ����� ������������� ������� ������: �� ���� ���������� �������� offset � ���������� �������� ���������� �� ����������� scale. ���� ��������� ������������� ������-���� �������� ������ ������� buff, �� ������ ������� ������������� �� 1. ������� ������������ ��� ������������������ ���� ����� sizeof(short).

����������� scale ���������������� ��� ����������� ����������������� �������� ����� � ������������� ������, ������� ����� �� ������� ���������. ���, ����������� 0177777 (������������) ���� �������-����������� ����������� �������� �������� ������ �� �������� ������� buff; 077777 ���������� �� ���� ������� ���� �������� ������. ��� �������� scale, ������ 02, ��� ������� ����������� �� ������ ������� ������� buff, ������� � ���������� ����������� � ������������� ����.

���� �������� ��������� scale ������ ������ 0 ��� 1, ��������� ������� �����������. ��� bufsiz ������ 0 �������������� �� �����������, ������ ��� ���������� ����� �� �����������. �������������� ����������� ��� ���������� ���������� ������ exec, �� �������� � ��������-������� � ������������ �������� ����� ������ fork. �������������� �����������, ���� ��������� � �������� ������� buff �������� � ������ �� ������� ������, ���������� ��������.

��. �����
times(2), monitor(3C). prof(1) � ����������� ������������.

�����������
�� �������������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT