Hi,
I'd like to create perl functions in separate file from my scripts.
Does somebody know if it's possible to create and use a perl module without compiling it ?
Thanks. (4 Replies)
Hi Folks,
I posted a few days ago, thanks for the responses. My original question was for renaming files of sort 3p2325294.dgn in a directory containing multiple files. I need to drop the first 2 characters and the last in a unix script using Perl. How does it differ from using the Unix... (1 Reply)
Hi,
Here is my problem.. i have 2 files (file1, file2).. i have wrote the last two lines and first 4 lines of "file2" into two different variables .. say..
my $firstrec = `head -4 $file2`;
my $lastrec = `tail -2 $file2`;
and i write the rest of the file2 to a tmpfile and cat it with head... (2 Replies)
Hi
i have written a perl script which was then converted to perl module by me. it works as expected. but i have to put it on many servers so i want to build a package for it. i dont know how to do that. just to check i copied perl module in "lib" directory which is working. ( directly copied... (1 Reply)
I want to write a Perl script that manipulates multiple files. In the directory, I have files 250.*chr$.ped where * is from 1 to 1000 and $ is from 1-22 for a total of 22 x 10,000 = 22,000 files.
I want to write a script that only manipulates files 250.1chr*.ped where * is from 1 to 22.... (10 Replies)
Hi everyone
I am a beginner in perl and I am trying to write a perl script. Basically I want to separate gene entries from phenotype entries in a text file which contains huge number of records and copy them in a separate file. The gene entries will have * symbol after the line FIELD TI. A... (7 Replies)
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
I'm writing a perl script that writes an html file.
use Tie::File;
my ($dir) = @ARGV;
open (HTML,">","$dir/file.html") || die $!;
#-----Building HTML file---------------------------
print HTML "<!DOCTYPE html>
<html>
<head>
<title>Output</title>
<link... (3 Replies)
Hi,
I am new to perl.
I am trying to write a small perl script for search and replace in a file :
========================================================
#!/usr/bin/perl
my $searchStr = "register_inst\.write_t\(";
my $replaceStr = "model\.fc_block\.";
open(FILE,"temp.sv") ||... (2 Replies)
Hi all.
I am working on the below requirement of generating .xml file from .xls file which i have , can someone please help me or in writing the perl script for the same:
The xls file format is as below which has two columns and number of rows are not fixed:
Fixlet Name ... (12 Replies)
Discussion started by: omkar.jadhav
12 Replies
LEARN ABOUT MOJAVE
latency
LATENCY(1) BSD General Commands Manual LATENCY(1)NAME
latency -- monitors scheduling and interrupt latency
SYNOPSIS
latency [-p priority] [-h] [-m] [-st threshold] [-it threshold] [-c code_file] [-l log_file] [-R raw_file] [-n kernel]
DESCRIPTION
The latency utility provides scheduling and interrupt-latency statistics. Due to the kernel tracing facility it uses to operate, the command
requires root privileges.
The arguments are as follows:
-c code_file
When the -c option is specified, it takes a path to a code file that contains the mappings for the system calls. This option over-
rides the default location of the system call code file, which is found in /usr/share/misc/trace.codes.
-h Display high resolution interrupt latencies and write them to latencies.csv (truncate existing file) upon exit.
-m Display per-CPU interrupt latency statistics.
-it threshold
Set the interrupt latency threshold, expressed in microseconds. If the latency exceeds this value, and a log file has been speci-
fied, a record of what occurred during this time is recorded.
-l log_file
Specifies a log file that is written to when either the interrupt or scheduling latency is exceeded.
-n kernel
By default, latency acts on the default /System/Library/Kernels/kernel.development. This option allows you to specify an alternate
booted kernel.
-p priority
Specifies the priority level to observe scheduler latencies for. The default is realtime ( 97 ). A range of priorities to monitor
can also be provided, for example 31-47 or 0-127
-st threshold
Set the scheduler latency threshold in microseconds. If latency exceeds this, and a log file has been specified, a record of what
occurred during this time is recorded.
-R raw_file
Specifies a raw trace file to use as input.
The data columns displayed are as follows:
SCHEDULER The number of context switches that fall within the described delay.
INTERRUPTS The number of interrupts that fall within the described delay.
The latency utility is also SIGWINCH savvy, so adjusting your window geometry will change the list of delay values displayed.
SAMPLE USAGE
latency -p 97 -st 20000 -it 1000 -l /var/tmp/latency.log
The latency utility will watch threads with priority 97 for scheduling latencies. The threshold for the scheduler is set to 20000 microsec-
onds. The threshold for interrupts is set to 1000 microseconds. Latencies that exceed these thresholds will be logged in
/var/tmp/latency.log.
SEE ALSO fs_usage(1), sc_usage(1), top(1)Mac OS X March 28, 2000 Mac OS X