Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for threadcreate (0.14 sec)

  1. doc/next/6-stdlib/99-minor/runtime/pprof/43669.md

    The maximum stack depth for alloc, mutex, block, threadcreate and goroutine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 124 bytes
    - Viewed (0)
  2. src/net/http/pprof/pprof.go

    //
    //   - debug=N (all profiles): response format: N = 0: binary (default), N > 0: plaintext
    //   - gc=N (heap profile): N > 0: run a garbage collection cycle before profiling
    //   - seconds=N (allocs, block, goroutine, heap, mutex, threadcreate profiles): return a delta profile
    //   - seconds=N (cpu (profile), trace profiles): profile for the given duration
    //
    // # Usage examples
    //
    // Use the pprof tool to look at the heap profile:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:34:05 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/runtime/pprof/pprof.go

    //
    //	goroutine    - stack traces of all current goroutines
    //	heap         - a sampling of memory allocations of live objects
    //	allocs       - a sampling of all past memory allocations
    //	threadcreate - stack traces that led to the creation of new OS threads
    //	block        - stack traces that led to blocking on synchronization primitives
    //	mutex        - stack traces of holders of contended mutexes
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. cmd/utils.go

    			runtime.SetMutexProfileFraction(0)
    			return buf.Bytes(), err
    		}
    	case madmin.ProfilerThreads:
    		prof.record("threadcreate", 0, "before")
    		prof.stopFn = func() ([]byte, error) {
    			var buf bytes.Buffer
    			err := pprof.Lookup("threadcreate").WriteTo(&buf, 0)
    			return buf.Bytes(), err
    		}
    	case madmin.ProfilerGoroutines:
    		prof.ext = "txt"
    		prof.record("goroutine", 1, "before")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    func parseLegacy(data []byte) (*Profile, error) {
    	parsers := []func([]byte) (*Profile, error){
    		parseCPU,
    		parseHeap,
    		parseGoCount, // goroutine, threadcreate
    		parseThread,
    		parseContention,
    		parseJavaProfile,
    	}
    
    	for _, parser := range parsers {
    		p, err := parser(data)
    		if err == nil {
    			p.addLegacyFrameInfo()
    			return p, nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    )
    
    func isSpaceOrComment(line string) bool {
    	trimmed := strings.TrimSpace(line)
    	return len(trimmed) == 0 || trimmed[0] == '#'
    }
    
    // parseGoCount parses a Go count profile (e.g., threadcreate or
    // goroutine) and returns a new Profile.
    func parseGoCount(b []byte) (*Profile, error) {
    	s := bufio.NewScanner(bytes.NewBuffer(b))
    	// Skip comments at the beginning of the file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  7. src/runtime/os_openbsd_libc.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    // mstart_stub provides glue code to call mstart from pthread_create.
    func mstart_stub()
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrierrec
    func newosproc(mp *m) {
    	if false {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/threadpanic_unix.c

    #include <stdio.h>
    #include <pthread.h>
    
    void gopanic(void);
    
    static void*
    die(void* x)
    {
    	gopanic();
    	return 0;
    }
    
    void
    start(void)
    {
    	pthread_t t;
    	if(pthread_create(&t, 0, die, 0) != 0)
    		printf("pthread_create failed\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 435 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/cthread_unix.c

    	for(i=0; i<nthread; i++)
    		pthread_create(&thread_id[i], 0, addThread, &max);
    	for(i=0; i<nthread; i++)
    		pthread_join(thread_id[i], 0);		
    }
    
    static void*
    goDummyCallbackThread(void* p)
    {
    	int i, max;
    
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		goDummy();
    	return NULL;
    }
    
    int
    callGoInCThread(int max)
    {
    	pthread_t thread;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/racesig.go

    	}
    	return NULL;
    }
    
    void runRaceSignalThread() {
    	int i;
    	pthread_t m[ALLOCERS];
    	pthread_t s[SIGNALERS];
    
    	for (i = 0; i < ALLOCERS; i++) {
    		pthread_create(&m[i], NULL, mallocThread, NULL);
    	}
    	for (i = 0; i < SIGNALERS; i++) {
    		pthread_create(&s[i], NULL, signalThread, &m[0]);
    	}
    	for (i = 0; i < SIGNALERS; i++) {
    		pthread_join(s[i], NULL);
    	}
    	for (i = 0; i < ALLOCERS; i++) {
    		pthread_join(m[i], NULL);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 01:46:05 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top