03-24-04 03:39 PM
music4 wrote:
> Greetings,
>
> I developed a socket server program, now I am testing it.
>
> In the test, I let the socket client keep sending same data to server
> program at same speed. But I find the server process normally occupy about
> 20% CPU usage, but sometime over 50%.
>
> So I am wondering if there is to let me see what server program is doing
> what high CPU usage time.
>
> I developer the program on Solaris 8, C++ language, Sun Forte 6 compiler.
>
> Any ideas will be greatly appreciated.
>
> Evan
>
>
That's what a debugger is for. The dbx debugger (part of forte) can
also do profiling and report how much time is spent in each function.
See the manpage for dbx and the help command of dbx.
-- ced
--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.
[ Post a follow-up to this message ]
|