Hi All!
Wie kann ich den Rechenzeit- und Speicherbedarf eines Programms herausfinden (z.B. Perl-Skript)?
Danke,
Samsara
Hi All!
Wie kann ich den Rechenzeit- und Speicherbedarf eines Programms herausfinden (z.B. Perl-Skript)?
Danke,
Samsara
Interface design
whohas - wer hat's im Repository? Debian? Fedora? Gentoo? ...?
Hardware compatibility list - das Original mit bereits 3000 Einträgen
It ain't a hack if it ain't dirty.
Under Windows:
CRTL + ALT + DEL , Links, Links, ENTER
MfG Bischi
"There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss it" The hitchhiker's guide to the galaxy by Douglas Adams
--> l2picfaq.pdf <-- www.n.ethz.ch/~dominikb/index.html LaTeX-Tutorial, LaTeX-Links, Java-Links,...
Unter Unix console mit top, unter KDE mit KSysGuard (STRG+ESC)
Ciao,
_
Qt/KDE Entwickler
Debian Benutzer
das ist [Computer sperren] du DeppOriginal geschrieben von bischi
Under Windows:
CRTL + ALT + DEL , Links, Links, ENTER
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
Das ist Herunterfahren (du Depp )das ist [Computer sperren] du Depp
Hab ein Links vergessen
MfG Bischi
"There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss it" The hitchhiker's guide to the galaxy by Douglas Adams
--> l2picfaq.pdf <-- www.n.ethz.ch/~dominikb/index.html LaTeX-Tutorial, LaTeX-Links, Java-Links,...
Links ist links und nicht rechts oder sonstwas
ausserdem gehts links nicht weiter da du schon links bist du depp
übrigens nur W2k
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
Du hast auch noch nie was von Tastatur auf den Kopf stelllen gehört
MfG Bischi
"There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss it" The hitchhiker's guide to the galaxy by Douglas Adams
--> l2picfaq.pdf <-- www.n.ethz.ch/~dominikb/index.html LaTeX-Tutorial, LaTeX-Links, Java-Links,...
auf den Kopf gestellt stimmts immer noch nicht (wenn du 180°-Drehen meinst)
Aber eigentlich drücke ich alle Tasten aufs mal...
muss man Windows so bedienen?
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
Kommt draufan, in welche Richtungauf den Kopf gestellt stimmts immer noch nicht (wenn du 180°-Drehen meinst)
Aber eigentlich drücke ich alle Tasten aufs mal...
muss man Windows so bedienen?
MfG Peschmä
Nein, so bedienst du Windows im Normalfall nicht (Zitat: Klicki-Bunti). Du bist inkonsequent...
MfG Bischi
"There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss it" The hitchhiker's guide to the galaxy by Douglas Adams
--> l2picfaq.pdf <-- www.n.ethz.ch/~dominikb/index.html LaTeX-Tutorial, LaTeX-Links, Java-Links,...
also in welche denn?
Zuerst - nein geht auch nicht! Du musst 4 mal rechts oder runter drücken oder zweimal rechts und zweimal runter oder - egal
Wie kommst du denn darauf Windows so abartig zu "bedienen"? Mach besser klicki-bunti - die Tastatur bekommt dir offenbar nicht gut
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
Follgendes Skript enthällt eine Methode getMemAndTimeUsage die die CPU-Zeit(nicht die Zeit die seit dem Aufruf vergangen ist, sondern nur die Zeit in der der Prozess die CPU benutzt hat!) und den Speicherverbrauch eines Programms zurückgibt:
Weiere Infos zu ProcessTable: http://search.cpan.org/author/DURIST...ess/Process.pmCode:#!/usr/bin/perl -w use strict; sub getMemAndTimeUsage { if ($_[0] eq "") { return undef; }; use Proc::ProcessTable; my @results; my $proc = Proc::ProcessTable->new; my %fields = map { $_ => 1 } $proc->fields; return undef unless exists $fields{'fname'}; foreach (@{$proc->table}) { if($_->fname eq $_[0]) { push (@results, $_->size) if exists $fields{'size'}; push (@results, $_->time) if exists $fields{'time'}; }; }; return @results; } print join("\n", &getMemAndTimeUsage("DateiNameDeinesProgramms")); exit(0);
Geändert von TrollSlayer (26-08-2003 um 13:59 Uhr)
Hey danke, TrollSlayer!
Werd's bald mal ausprobieren, wenn ich wieder an der Linuxkiste sitze!
Herzlich gegruesst,
Samsara
Interface design
whohas - wer hat's im Repository? Debian? Fedora? Gentoo? ...?
Hardware compatibility list - das Original mit bereits 3000 Einträgen
It ain't a hack if it ain't dirty.
Lesezeichen