Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CPUHogCFunction0 (0.27 sec)

  1. src/runtime/pprof/testdata/mappingtest/main.go

    /*
    #include <stdint.h>
    #include <stdlib.h>
    
    int cpuHogCSalt1 = 0;
    int cpuHogCSalt2 = 0;
    
    void CPUHogCFunction0(int foo) {
    	int i;
    	for (i = 0; i < 100000; i++) {
    		if (foo > 0) {
    			foo *= foo;
    		} else {
    			foo *= foo + 1;
    		}
    		cpuHogCSalt2 = foo;
    	}
    }
    
    void CPUHogCFunction() {
    	CPUHogCFunction0(cpuHogCSalt1);
    }
    
    struct CgoTracebackArg {
    	uintptr_t context;
            uintptr_t sigContext;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 08 02:40:04 UTC 2019
    - 2K bytes
    - Viewed (0)
Back to top