Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for InitHook (0.12 sec)

  1. src/internal/coverage/cfile/hooks.go

    // license that can be found in the LICENSE file.
    
    package cfile
    
    import "internal/runtime/exithook"
    
    // InitHook is invoked from the main package "init" routine in
    // programs built with "-cover". This function is intended to be
    // called only by the compiler (via runtime/coverage.initHook).
    //
    // If 'istest' is false, it indicates we're building a regular program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/coverage/coverage.go

    // license that can be found in the LICENSE file.
    
    package coverage
    
    import (
    	"internal/coverage/cfile"
    	"io"
    )
    
    // initHook is invoked from main.init in programs built with -cover.
    // The call is emitted by the compiler.
    func initHook(istest bool) {
    	cfile.InitHook(istest)
    }
    
    // WriteMetaDir writes a coverage meta-data file for the currently
    // running program to the directory specified in 'dir'. An error will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/_builtin/coverage.go

    // in cmd/compile/internal/typecheck
    // to update builtin.go. This is not done automatically
    // to avoid depending on having a working compiler binary.
    
    //go:build ignore
    
    package coverage
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 16:59:48 UTC 2024
    - 437 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/coverage/cover.go

    	// bodies (with counter updates) might be inlined into init.
    	cnames.InitFn.Body.Prepend(assign)
    }
    
    // addInitHookCall generates a call to runtime/coverage.initHook() and
    // inserts it into the package main init function, which will kick off
    // the process for coverage data writing (emit meta data, and register
    // an exit hook to emit counter data).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/builtin.go

    	return typs[:]
    }
    
    var coverageDecls = [...]struct {
    	name string
    	tag  int
    	typ  int
    }{
    	{"initHook", funcTag, 1},
    }
    
    func coverageTypes() []*types.Type {
    	var typs [2]*types.Type
    	typs[0] = types.Types[types.TBOOL]
    	typs[1] = newSig(params(typs[0]), nil)
    	return typs[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top