Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site mips.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!glacier!mips!mash From: mash@mips.UUCP (John Mashey) Newsgroups: net.lang.c Subject: How long is a string? Message-ID: <243@mips.UUCP> Date: Tue, 26-Nov-85 04:32:30 EST Article-I.D.: mips.243 Posted: Tue Nov 26 04:32:30 1985 Date-Received: Thu, 28-Nov-85 04:08:31 EST Distribution: net Organization: MIPS Computer Systems, Mountain View, CA Lines: 17 Does anybody have any statistics or pointers thereto on the dynamic frequencies/usage of string lengths found in the use of the str* and (on Sys V) mem* functions? I'll accept, with thanks, any data I can get, summarize, and repost to the net. I'd love to get data like: In a day's usage on a busy machine, the distribution of string lengths given to strcpy was: 0: X%, 1, Y%, etc. [If you can give me that, I'll sing your praises for a long time!] Failing the above, I'd be glad to hear things like: I was profiling command Y, and here is the call count, avg time/call, and % total CPU time for the few top-running string functions. -- -john mashey UUCP: {decvax,ucbvax,ihnp4}!decwrl!mips!mash DDD: 415-960-1200 USPS: MIPS Computer Systems, 1330 Charleston Rd, Mtn View, CA 94043